Apply suggestions from code review

Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
This commit is contained in:
Martin HS 2024-01-23 13:58:49 +01:00 committed by Martin Holst Swende
parent d06e2bb6d3
commit 86d17787ce
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0
2 changed files with 2 additions and 2 deletions

View file

@ -200,7 +200,7 @@ func (p *TxPool) loop(head *types.Header, chain BlockChain) {
resetDone = make(chan *types.Header)
resetForced bool // Whether a forced reset was requested, only used in simulator mode
resetWaiter chan error // Channel waitinf on a forced reset, only used in simulator mode
resetWaiter chan error // Channel waiting on a forced reset, only used in simulator mode
)
var errc chan error
for errc == nil {

View file

@ -374,7 +374,7 @@ func (api *ConsensusAPI) forkchoiceUpdated(update engine.ForkchoiceStateV1, payl
if api.localBlocks.has(id) {
return valid(&id), nil
}
// If the beacon chain is ran by a simulator, then transaction inserion,
// If the beacon chain is ran by a simulator, then transaction insertion,
// block insertion and block production will happen without any timing
// delay between them. This will cause flaky simulator executions due to
// the transaction pool running its internal reset operation on a back-