0xPolygonHermez / cdk-erigon

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

[RPC] AccInputHash Problems #1002

Open revitteth opened 3 weeks ago

revitteth commented 3 weeks ago

Initial solution (implemented):

Call the s/c, If it returns 0x00....set it to 0x00 (otherwise you are returning a accInputHash for the wrong batchNum) if it returns a non-zero hash, just set it

Fix required:

Sync events SequenceBatches and from batch DB data you can compute all batches accInputHash and you store them in the DB. When you save a batch in the DB during synchronization, also compute the accInputHash and store it.

Sharonbc01 commented 3 weeks ago

Hey @revitteth is this done now.