Skip to content

Commit

Permalink
fix mockparlia FinalizeAndAssemble
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Nov 22, 2024
1 parent 3045096 commit b13baec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4281,7 +4281,7 @@ func (c *mockParlia) Finalize(chain consensus.ChainHeaderReader, header *types.H

func (c *mockParlia) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, body *types.Body, receipts []*types.Receipt) (*types.Block, []*types.Receipt, error) {
// Finalize block
c.Finalize(chain, header, state, &body.Transactions, nil, nil, nil, nil, nil)
c.Finalize(chain, header, state, &body.Transactions, body.Uncles, body.Withdrawals, nil, nil, nil)

// Assign the final state root to header.
header.Root = state.IntermediateRoot(chain.Config().IsEIP158(header.Number))
Expand Down
2 changes: 1 addition & 1 deletion eth/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (c *mockParlia) Finalize(chain consensus.ChainHeaderReader, header *types.H

func (c *mockParlia) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, body *types.Body, receipts []*types.Receipt) (*types.Block, []*types.Receipt, error) {
// Finalize block
c.Finalize(chain, header, state, &body.Transactions, nil, nil, nil, nil, nil)
c.Finalize(chain, header, state, &body.Transactions, body.Uncles, body.Withdrawals, nil, nil, nil)

// Assign the final state root to header.
header.Root = state.IntermediateRoot(chain.Config().IsEIP158(header.Number))
Expand Down

0 comments on commit b13baec

Please sign in to comment.