mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/catalyst: typo
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
f2804445a2
commit
1575c31d8b
1 changed files with 5 additions and 5 deletions
|
|
@ -144,9 +144,9 @@ func (c *SimulatedBeacon) sealBlock(withdrawals []*types.Withdrawal) error {
|
||||||
c.feeRecipientLock.Unlock()
|
c.feeRecipientLock.Unlock()
|
||||||
|
|
||||||
// Reset to CurrentBlock in case of the chain was rewound
|
// Reset to CurrentBlock in case of the chain was rewound
|
||||||
if headerHash := c.eth.BlockChain().CurrentBlock().Hash(); c.curForkchoiceState.HeadBlockHash != headerHash {
|
if header := c.eth.BlockChain().CurrentBlock(); c.curForkchoiceState.HeadBlockHash != header.Hash() {
|
||||||
finalizedHash := c.finalizedBlockHash(c.eth.BlockChain().CurrentBlock().Number.Uint64())
|
finalizedHash := c.finalizedBlockHash(header.Number.Uint64())
|
||||||
c.setCurrentState(headerHash, *finalizedHash)
|
c.setCurrentState(header.Hash(), *finalizedHash)
|
||||||
}
|
}
|
||||||
|
|
||||||
fcResponse, err := c.engineAPI.ForkchoiceUpdatedV2(c.curForkchoiceState, &engine.PayloadAttributes{
|
fcResponse, err := c.engineAPI.ForkchoiceUpdatedV2(c.curForkchoiceState, &engine.PayloadAttributes{
|
||||||
|
|
@ -206,12 +206,12 @@ func (c *SimulatedBeacon) loopOnDemand() {
|
||||||
case w := <-c.withdrawals.pending:
|
case w := <-c.withdrawals.pending:
|
||||||
withdrawals := append(c.withdrawals.gatherPending(9), w)
|
withdrawals := append(c.withdrawals.gatherPending(9), w)
|
||||||
if err := c.sealBlock(withdrawals); err != nil {
|
if err := c.sealBlock(withdrawals); err != nil {
|
||||||
log.Warn("error performing sealing work", "err", err)
|
log.Warn("Error performing sealing work", "err", err)
|
||||||
}
|
}
|
||||||
case <-newTxs:
|
case <-newTxs:
|
||||||
withdrawals := c.withdrawals.gatherPending(10)
|
withdrawals := c.withdrawals.gatherPending(10)
|
||||||
if err := c.sealBlock(withdrawals); err != nil {
|
if err := c.sealBlock(withdrawals); err != nil {
|
||||||
log.Warn("error performing sealing work", "err", err)
|
log.Warn("Error performing sealing work", "err", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue