Open NZT48 opened 1 year ago
Can you fetch the corresponding tx-related information from pallet-ethereum
storage? If not, the tx is not included in the chain.
@AsceticBear the transaction is included in the chain because it is available on the other half of nodes which work correctly and change in transfer funds is visible on all nodes.
Can you give me more instructions on how to fetch the corresponding tx-related information from pallet-ethereum storage?
the transaction is included in the chain because it is available on the other half of nodes which work correctly and change in transfer funds is visible on all nodes.
This situation indicates that the transaction was not rejected because of the validation. Another possibility is that the PALLET_ETHEREUM_SCHEMA
of the problematic node is incorrect, which leads to a wrong decode result at the client.
@AsceticBear is there a way how we can check those two assumptions?
Hmm, Check out the PALLET_ETHEREUM_SCHEMA
storage item in your chain. Nothing magic.
Please confirm:
If all the above is true then the only possible way of not getting ethereum related data through rpc is some of your nodes didn't properly synced frontier DB.
Hey @tgmichel, sorry for late reply.
I think it is not related to Frontier DB, because copying frontier/db directory from working node does not fix the issue. It was the replacement of db directory that fixes the issue.
All our nodes are constantly checked for this issue, and we saw that for a new node (that is started with copied and synced DB from working node) it took around 11 days for this issue to start happening. We couldn't find anything suspicious in logs for that period.
Description
RPC calls eth_getTransactionByHash and eth_getTransactionReceipt returns null result for valid transactions.
Just restarting nodes does not affect this issue. We are suspecting that it has to be something with
storage
, because copying database (db/full directory) from working node to the node with issue and replacing his db/full directory, mitigates this issue.This issue affects web3.js and metamask:
Steps to Reproduce
It cannot be reproduced in local environment because it is happening only on nodes that are running more than 3 months. We used following command to check:
Expected vs. Actual Behavior
Result that we get:
Expected result:
Environment
Logs, Errors or Screenshots
There were no errors in node logs.
Additional Information
We would like to ask for additional guide how to investigate this issue and to check with other teams if they have experienced it.