additional clarifying comment

This commit is contained in:
Jared Wasinger 2024-07-01 20:18:34 -07:00
parent 9cc2c4770f
commit 32a8f1d54d

View file

@ -162,6 +162,9 @@ func (c *SimulatedBeacon) Stop() error {
// sealBlock initiates payload building for a new block and creates a new block // sealBlock initiates payload building for a new block and creates a new block
// with the completed payload. // 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) { func (c *SimulatedBeacon) sealBlock(allowEmpty bool, timestamp uint64) (committed bool, err error) {
if timestamp <= c.lastBlockTime { if timestamp <= c.lastBlockTime {
timestamp = c.lastBlockTime + 1 timestamp = c.lastBlockTime + 1