[PIE-2322] Create file if logBloom-current.cache is missing #438
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Karim TAAM [email protected]
PR description
Contract used : Deposit contract for the prysm testnet on Goerli
Topics used : keccack('DepositEvent(bytes,bytes,bytes,bytes,bytes)') = 649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5
A bug seems to be present in BESU . In the case where a node was already synchronized without cache and that we activate it thereafter
In case we activate the cache of a node already synchronized. BESU must cache all the blocks already present in the database.
But after waiting for caching to finish we don't get the right result with
eth_getLogs
Here is the comparison of
eth_getLogs
responsesWe can see a difference in the response when BESU tries to cache blocks already in the database
Let's see where is the difference between the two responses :
We can see that it is the last blocks near the head (2274293) that are missing in the answer.
However we can see that BESU had finished block caching (with an exception)
Fixed Issue(s)
Create file if logBloom-current.cache is missing