mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
fix: addressed comments
This commit is contained in:
parent
ca5b093605
commit
e5d5318c8b
2 changed files with 1 additions and 3 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue