Skip to content

Commit

Permalink
Merge pull request #4 from InjectiveLabs/feat/update-request-finalize…
Browse files Browse the repository at this point in the history
…-block

fix: set correct LastBlockPartSetHash in RequestFinalizedBlock
  • Loading branch information
kakysha authored Oct 11, 2024
2 parents 616be63 + 8c88c46 commit 991b1fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions state/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (blockExec *BlockExecutor) applyBlock(state State, blockID types.BlockID, b
Txs: block.Txs.ToSliceOfBytes(),
LastBlockHash: block.LastBlockID.Hash,
LastBlockPartSetTotal: int64(block.LastBlockID.PartSetHeader.Total),
LastBlockPartSetHash: block.LastBlockID.Hash,
LastBlockPartSetHash: block.LastBlockID.PartSetHeader.Hash,
AppHash: block.AppHash,
ValidatorsHash: block.ValidatorsHash,
ConsensusHash: block.ConsensusHash,
Expand Down Expand Up @@ -792,7 +792,7 @@ func ExecCommitBlock(
Txs: block.Txs.ToSliceOfBytes(),
LastBlockHash: block.LastBlockID.Hash,
LastBlockPartSetTotal: int64(block.LastBlockID.PartSetHeader.Total),
LastBlockPartSetHash: block.LastBlockID.Hash,
LastBlockPartSetHash: block.LastBlockID.PartSetHeader.Hash,
AppHash: block.AppHash,
ValidatorsHash: block.ValidatorsHash,
ConsensusHash: block.ConsensusHash,
Expand Down

0 comments on commit 991b1fd

Please sign in to comment.