This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 561
Problem: tx index is incorrect when there's failed tx in block #705
Labels
C:JSON-RPC
JSON-RPC client
Comments
yihuang
changed the title
Problem: failed tx not excluded from web3 api
Problem: tx index is incorrect when there's failed tx in block
Oct 27, 2021
I see the issue you mention but I don't understand your suggested proposal, can you elaborate? @yihuang |
|
and those two tx has exactly the same txhash failedtx , successfultx |
11 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
System info: ethermint main branch
Steps to reproduce:
Since failed tx don't increase the tx index in transient store, so the tx index recorded in the log is actually excludes the failed tx, so don't match the tx list in
getBlock
where there are failed tx in present.Expected behavior: web3 apis should be consistent with each other
Actual behavior: tx index could be inconsistent
Additional info:
Proposal:
getBlock
andeth_getTransactionByBlockHashAndIndex
,GetTransactionByBlockNumberAndIndex
, etc.The text was updated successfully, but these errors were encountered: