fix: addressed comments

This commit is contained in:
Pratik Patil 2025-05-16 19:26:32 +05:30
parent ca5b093605
commit e5d5318c8b
No known key found for this signature in database
GPG key ID: AFDCA496554874B3
2 changed files with 1 additions and 3 deletions

View file

@ -80,7 +80,7 @@ func isPostMerge(config *params.ChainConfig, blockNum uint64, timestamp uint64)
mergedAtGenesis := config.TerminalTotalDifficulty != nil && config.TerminalTotalDifficulty.Sign() == 0 mergedAtGenesis := config.TerminalTotalDifficulty != nil && config.TerminalTotalDifficulty.Sign() == 0
return mergedAtGenesis || return mergedAtGenesis ||
config.MergeNetsplitBlock != nil && blockNum >= config.MergeNetsplitBlock.Uint64() || config.MergeNetsplitBlock != nil && blockNum >= config.MergeNetsplitBlock.Uint64() ||
config.ShanghaiBlock != nil config.ShanghaiBlock != nil && blockNum >= config.ShanghaiBlock.Uint64()
} }
// Author implements consensus.Engine, returning the verified author of the block. // Author implements consensus.Engine, returning the verified author of the block.

View file

@ -3168,8 +3168,6 @@ func TestPoolMultiAccountBatchInsertRace(t *testing.T) {
pending = pool.Pending(txpool.PendingFilter{}) pending = pool.Pending(txpool.PendingFilter{})
total = len(pending) total = len(pending)
// _ = pool.Locals()
if total >= n { if total >= n {
close(done) close(done)