openethereum / parity-ethereum

The fast, light, and robust client for Ethereum-like networks.
Other
6.83k stars 1.69k forks source link

getTransaction() returning 'not found' #11804

Closed purplebiatch closed 4 years ago

purplebiatch commented 4 years ago

Hey, I have an issue with my openethereum node not fetching pending transactions properly I get a list of transaction hashes from web3.py and get the actual transaction with:

filter = W3.eth.filter('pending')
filter.get_new_entries()
...
w3.eth.getTransaction(hash)

But around half of the transaction lookups return transaction not found How can the node not have the transaction but have the transaction hash? I have tried catching this error and waiting ~1s and doing w3.eth.getTransaction(hash) on hashes that errored, but it usually returns the same error I know this includes web3.py code which is not part of this repo but it's impossible for me to manually test this non-programatically

rakita commented 4 years ago

Hi purplebiath, maybe because both APIs are fetching pending transactions, maybe transaction in block got mined and the transaction is no longer in pending state.