Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: lightclient <[email protected]>
  • Loading branch information
holiman and lightclient committed Jan 23, 2024
1 parent d06e2bb commit 86d1778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/txpool/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion eth/catalyst/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand Down

0 comments on commit 86d1778

Please sign in to comment.