mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Apply suggestions from code review
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
This commit is contained in:
parent
d06e2bb6d3
commit
86d17787ce
2 changed files with 2 additions and 2 deletions
|
|
@ -200,7 +200,7 @@ func (p *TxPool) loop(head *types.Header, chain BlockChain) {
|
||||||
resetDone = make(chan *types.Header)
|
resetDone = make(chan *types.Header)
|
||||||
|
|
||||||
resetForced bool // Whether a forced reset was requested, only used in simulator mode
|
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
|
var errc chan error
|
||||||
for errc == nil {
|
for errc == nil {
|
||||||
|
|
|
||||||
|
|
@ -374,7 +374,7 @@ func (api *ConsensusAPI) forkchoiceUpdated(update engine.ForkchoiceStateV1, payl
|
||||||
if api.localBlocks.has(id) {
|
if api.localBlocks.has(id) {
|
||||||
return valid(&id), nil
|
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
|
// block insertion and block production will happen without any timing
|
||||||
// delay between them. This will cause flaky simulator executions due to
|
// delay between them. This will cause flaky simulator executions due to
|
||||||
// the transaction pool running its internal reset operation on a back-
|
// the transaction pool running its internal reset operation on a back-
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue