From 32a8f1d54d0decbcc497a537c763bc5a995c76d4 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 1 Jul 2024 20:18:34 -0700 Subject: [PATCH] additional clarifying comment --- eth/catalyst/simulated_beacon.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/catalyst/simulated_beacon.go b/eth/catalyst/simulated_beacon.go index 2377e121c2..4af02b2e03 100644 --- a/eth/catalyst/simulated_beacon.go +++ b/eth/catalyst/simulated_beacon.go @@ -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