mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
additional clarifying comment
This commit is contained in:
parent
9cc2c4770f
commit
32a8f1d54d
1 changed files with 3 additions and 0 deletions
|
|
@ -162,6 +162,9 @@ func (c *SimulatedBeacon) Stop() error {
|
|||
|
||||
// sealBlock initiates payload building for a new block and creates a new block
|
||||
// with the completed payload.
|
||||
// If allowEmpty is false and payload building returns a block without
|
||||
// txs/withdrawals, the chain head will not be updated and the return
|
||||
// value of committed will be false.
|
||||
func (c *SimulatedBeacon) sealBlock(allowEmpty bool, timestamp uint64) (committed bool, err error) {
|
||||
if timestamp <= c.lastBlockTime {
|
||||
timestamp = c.lastBlockTime + 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue