Updates for stage2 setup #60
@ -19,7 +19,7 @@ FROM ubuntu:22.04
|
||||
# Install ca-certificates, jq, curl, bash, and other necessary packages
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
jq curl netcat bash \
|
||||
jq curl netcat bash bc \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy over binary from the builder
|
||||
|
@ -10,7 +10,7 @@ LOGLEVEL=${LOGLEVEL:-"info"}
|
||||
|
||||
input_genesis_file=${GENESIS_FILE}
|
||||
|
||||
if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
|
||||
if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data" ]; then
|
||||
# validate dependencies are installed
|
||||
command -v jq > /dev/null 2>&1 || {
|
||||
echo >&2 "jq not installed. More info: https://stedolan.github.io/jq/download/"
|
||||
@ -30,7 +30,7 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
|
||||
# if $KEY exists it should be deleted
|
||||
laconicd keys add $KEY --keyring-backend $KEYRING
|
||||
|
||||
# Set moniker and chain-id for Ethermint (Moniker can be anything, chain-id must be an integer)
|
||||
# Set moniker and chain-id
|
||||
laconicd init $MONIKER --chain-id $CHAINID --default-denom $DENOM
|
||||
|
||||
if [[ -f ${input_genesis_file} ]]; then
|
||||
|
@ -53,10 +53,10 @@ func GetCmdCommitBid() *cobra.Command {
|
||||
if chainId == "" {
|
||||
// Take from config if not provided
|
||||
chainId = clientCtx.ChainID
|
||||
}
|
||||
if chainId == "" {
|
||||
return fmt.Errorf("--chain-id required")
|
||||
}
|
||||
}
|
||||
|
||||
bidAmount, err := sdk.ParseCoinNormalized(args[1])
|
||||
if err != nil {
|
||||
|
@ -30,6 +30,11 @@ func (k *Keeper) InitGenesis(ctx sdk.Context, data *registry.GenesisState) error
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
readableRecord := record.ToReadableRecord()
|
||||
if err := k.processAttributes(ctx, readableRecord.Attributes, record.Id); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
for _, authority := range data.Authorities {
|
||||
|
Loading…
Reference in New Issue
Block a user