mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
penalties returned at tip fork
This commit is contained in:
parent
36d9bea7e9
commit
7e491a582b
1 changed files with 5 additions and 3 deletions
|
|
@ -419,9 +419,11 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
|
||||||
|
|
||||||
log.Debug("Time Calculated HookPenaltyTIPSigning ", "block", header.Number, "hash", header.Hash().Hex(), "pen comeback nodes", len(penComebacks), "not enough miner", len(penalties), "time", common.PrettyDuration(time.Since(start)))
|
log.Debug("Time Calculated HookPenaltyTIPSigning ", "block", header.Number, "hash", header.Hash().Hex(), "pen comeback nodes", len(penComebacks), "not enough miner", len(penalties), "time", common.PrettyDuration(time.Since(start)))
|
||||||
penalties = append(penalties, penComebacks...)
|
penalties = append(penalties, penComebacks...)
|
||||||
return penalties, nil
|
if chain.Config().IsTIPRandomize(header.Number) {
|
||||||
|
return penalties, nil
|
||||||
}
|
}
|
||||||
|
return penComebacks, nil
|
||||||
|
}
|
||||||
return []common.Address{}, nil
|
return []common.Address{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue