0xPolygonHermez / cdk-erigon

Ethereum implementation on the efficiency frontier
GNU Lesser General Public License v3.0
35 stars 40 forks source link

feat: add witness cache stage #1469

Open V-Staykov opened 1 week ago

V-Staykov commented 1 week ago

Adds a stage where we calculate the witnesses for each block and only for that block. There is a new limit flag that sets how many witnesses behind the tip we should hold. The rest are being deleted.

This info is then used when the RPC is called. The witnesses for each block are added to get the whole witness.