-
Notifications
You must be signed in to change notification settings - Fork 20.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block lose transactions? #22149
Comments
I don't understand, these two numbers are equal right?
|
the transaction count are equal. but the number which the first time get is wrong, losing 10 transactions. |
The chain reorg usually can happen. The block #11614988 might be different(different hash) actually. |
what should I do if i meet this problem? when i scan the blocks, my transaction sometimes unfortunately in the set of losing transactions |
好吧,你是浙大的,校友好 |
what does the reorg do? the block content will change? |
The reorg means this specific block(e.g. #100 with hash 0xabc) is included, but 1 minute later the #100 is replaced by another block 0xdef because this chain has a higher total difficulty.
Usually, a safe approach is to set a minimal confirmation threshold(e.g. 30 blocks). The possibility that the block is reorg after that many additional confirmations is super low. |
i see, really thanks. |
Will close it now. |
I use eth_newBlockFilter to get new blocks. it will get full transactions. the transaction count may smaller than which the block really has.
the following log means: blockNumber#(transaction count which eth_newBlockFilter get)#(transaction count using eth_getBlockTransactionCountByHash)
losing 10 transactons.
01/08_23:47:27 Check:11614988#163#163
rescan after 8 hours.
01/09_07:43:25 Check:11614988#173#173
Any suggestions?
The text was updated successfully, but these errors were encountered: