Skip to content

Commit

Permalink
fix: import txhash
Browse files Browse the repository at this point in the history
  • Loading branch information
taramakage committed Jul 25, 2023
1 parent 8b8a27c commit ae18b3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/side-chain/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState) {

for _, blockHeader := range data.BlockHeaders {
k.setBlockHeader(ctx, blockHeader.SpaceId, blockHeader.Height, blockHeader.Header)
if blockHeader.TxHash != "" {
k.setBlockHeaderTxHash(ctx, blockHeader.SpaceId, blockHeader.Height, []byte(blockHeader.TxHash))
}
}

for _, spaceLatestHeight := range data.SpaceLatestHeights {
Expand Down

0 comments on commit ae18b3c

Please sign in to comment.