Skip to content

Commit

Permalink
fix: set correct LastBlockPartSetHash in RequestFinalizedBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
arrivets committed Oct 11, 2024
1 parent fa484a8 commit 8c88c46
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 8c88c46

Please sign in to comment.