bnb-chain / opbnb

MIT License
404 stars 162 forks source link

optimize(op-node): increase catching up speed when sequencer lagging #108

Closed bnoieh closed 8 months ago

bnoieh commented 8 months ago

Description

set attrs.NoTxPool to true when sequencer is catching up to increase the speed

Rationale

if op-geth tx pool is full when sequencer catching up, the speed will be affected by op-geth building full payload in background

Example

n/a

Changes

  1. set attrs.NoTxPool to true when sequencer is catching up
  2. add const lagTimeWindow to trigger catching up mode
  3. refactor to add const buildFullBlockInterval