mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
Advance SimulatedBeacon based on lastBlockTime
This commit is contained in:
parent
c7bdf6b2fe
commit
f99537d2ee
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ func (c *SimulatedBeacon) setCurrentState(headHash, finalizedHash common.Hash) {
|
|||
// Commit seals a block on demand.
|
||||
func (c *SimulatedBeacon) Commit() common.Hash {
|
||||
withdrawals := c.withdrawals.pop(10)
|
||||
if err := c.sealBlock(withdrawals, uint64(time.Now().Unix())); err != nil {
|
||||
if err := c.sealBlock(withdrawals, c.lastBlockTime+1); err != nil {
|
||||
log.Warn("Error performing sealing work", "err", err)
|
||||
}
|
||||
return c.eth.BlockChain().CurrentBlock().Hash()
|
||||
|
|
|
|||
Loading…
Reference in a new issue