bnb-chain / op-geth

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

feat: add cache for Read/WriteTxIndexTail #160

Closed owen-reorg closed 2 months ago

owen-reorg commented 2 months ago

Description

Add cache for Read/WriteTxIndexTail

Rationale

The current ReadTxIndexTail takes more than 800ms for a node which preserves all blocks. It does have big impact on the performance. So we add a cache to optimize it.

Example

NA

Changes

NA