Update eth/catalyst/simulated_beacon.go

Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
Delweng 2023-08-24 14:39:04 +08:00 committed by GitHub
parent dfd8a79a88
commit 7afd003cda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,7 +144,7 @@ func (c *SimulatedBeacon) sealBlock(withdrawals []*types.Withdrawal) error {
feeRecipient := c.feeRecipient feeRecipient := c.feeRecipient
c.feeRecipientLock.Unlock() c.feeRecipientLock.Unlock()
// Reset to CurrentBlock in case of the chain was rewinded // Reset to CurrentBlock in case of the chain was rewound
block := c.eth.BlockChain().CurrentBlock() block := c.eth.BlockChain().CurrentBlock()
if c.curForkchoiceState.HeadBlockHash != block.Hash() { if c.curForkchoiceState.HeadBlockHash != block.Hash() {
c.curForkchoiceState = engine.ForkchoiceStateV1{ c.curForkchoiceState = engine.ForkchoiceStateV1{