Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

refactor(blockchain): Minor cleanup and add safety checks. #1266

Merged
merged 16 commits into from
Nov 1, 2023
Prev Previous commit
Next Next commit
reee
  • Loading branch information
itsdevbear committed Nov 1, 2023
commit 5f24220ffa6d4d3cfd00b864696597069ab76cef
2 changes: 1 addition & 1 deletion eth/core/chain_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (bc *blockchain) InsertBlockAndSetHead(block *types.Block) error {
return err
}

// SetHeadAndFinalize sets the head of the blockchain to the given block and finalizes the block.
// WriteBlockAndSetHead sets the head of the blockchain to the given block and finalizes the block.
func (bc *blockchain) WriteBlockAndSetHead(
block *types.Block, receipts []*types.Receipt, logs []*types.Log,
_ state.StateDB, emitHeadEvent bool,
Expand Down
Loading