bnb-chain / op-geth

GNU Lesser General Public License v3.0
58 stars 47 forks source link

feat: add recover node buffer list for pathdb #126

Closed sysvm closed 1 month ago

sysvm commented 4 months ago

Description

Recover node buffer list for pathdb to avoid dropping many blocks in node buffer list. If using nodebufferlist and op-geth is force kill, it will recover nodebufferlist by default.

Rationale

The sequencer module of opBNB is used to generate blocks. At present, opBNB blocks out of a single node. If the force kill or OOM is performed on the sequencer module, a large number of blocks will be left, and the data stored in the nodecache will be lost. Therefore, this pr can be used to recover data on nodebufferlist.

Example

N/A

Changes

Notable changes:

will-2012 commented 3 months ago

It is best to add rationale in the PR description.

sysvm commented 3 months ago

It is best to add rationale in the PR description.

Added