Open indanielo opened 2 months ago
Are someone looking into this issue? It is important for us.
Thank you
Can you please take a look at this issue? Basically, what's happening is that the RPCs are not working as they should because some database buckets don't exist when the datadir is passed, and the system is using the local database. If the connection is remote via protobuf, then there's no issue because the database is properly initialized. I understand this is a very serious problem that affects anyone working with RPC on the same machine as the node, since the speed is significantly faster. Thank you.
I checked your latest version, v1.2.15.7, and noticed that even though you updated the github.com/gateway-fm/cdk-erigon-lib library to version v0.0.0-20240805074757-5e3196248fde (5/8/2024), the issue still persists.
To resolve the problem, you need to incorporate the bucket changes introduced after commit c69f9871e8c9c1ca8f107270acf745e0623ca33c (29/8/2024). However, the current version of the library has additional buckets that prevent cdk-erigon from being properly initialized.
If needed, I've provided the necessary modifications to the library in the following link so you can use the latest version: Library Changes.
Currently, cdk breaks when starting with datadir, resulting in a lot of incorrect returned data.
@indanielo This should be fixed on latest version. Please retry and let me know. I just tested it and is fine on my side.
System information
Erigon version: v.1.1.5.9
Erigon Command (with flags/config):
Chain/Network: Mainnet/Cardona
Expected behaviour
Correct "to", "gasUsed" and other fields
Actual behaviour
Wrong "to", "gasUsed" and other fields
Steps to reproduce the behaviour
Possible solution
Update https://github.com/gateway-fm/cdk-erigon-lib adding this patch that I have created before: https://github.com/gateway-fm/cdk-erigon-lib/pull/5