forked from cerc-io/laconicd
Updates for stage2 setup (#60)
Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8) - Add `bc` installation in Dockerfile (required for stage1 to stage2 testnet migration) - Populate attributes map index when importing records from genesis to allow fetching records with filters from a chain with imported state Reviewed-on: cerc-io/laconicd#60 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
@@ -53,9 +53,9 @@ func GetCmdCommitBid() *cobra.Command {
|
||||
if chainId == "" {
|
||||
// Take from config if not provided
|
||||
chainId = clientCtx.ChainID
|
||||
if chainId == "" {
|
||||
return fmt.Errorf("--chain-id required")
|
||||
}
|
||||
}
|
||||
if chainId == "" {
|
||||
return fmt.Errorf("--chain-id required")
|
||||
}
|
||||
|
||||
bidAmount, err := sdk.ParseCoinNormalized(args[1])
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user