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

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Nov 1, 2023
1 parent 08e11ad commit a3b3d43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eth/core/chain_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ func (bc *blockchain) WriteGenesisBlock(block *types.Block) error {
return err
}

// InsertBlockAndSetHead inserts a block into the blockchain without setting the head.
// For now, it is a huge lie. It does infact set the head.
// InsertBlockAndSetHead inserts a block into the blockchain and sets the head.
func (bc *blockchain) InsertBlockAndSetHead(block *types.Block) error {
// Validate that we are about to insert a valid block.
if block.NumberU64() > 1 { // TODO DIAGNOSE
Expand Down

0 comments on commit a3b3d43

Please sign in to comment.