-
Notifications
You must be signed in to change notification settings - Fork 46
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
HMY prone to more "nonce too low" and "transaction underpriced" issues #242
Comments
adding to it, it seems to become a frequent bug with onewallet and metamask also; adding "transaction not confirmed after 40 seconds" to this list too as i believe they all originate from the same core bug |
quote RockTheBlockchain validator: Hi Rongjian. Thanks for checking in on this for me. what happened before the first failed txn on your address? Did you send two txns fairly closely in time? Can you give me more context?
|
i got this issue when using the payment script ./hmy-csv.py ~/Downloads/file.csv --fast --node https://api.s0.t.hmny.io/ |
Hmm this just looks like youre passing nonce that was already used, you would need to check on explorer which is your latest nonce, or use |
1. Observed from logA typical worker proposing transaction log message from leader node. Observed facts:
2. Analysis2.1 Why staking transaction will stay in transaction pool for a long time? What's the further impact?Because when the leader node failed to execute the staking transaction, there is no "receipt" from the block produced to inform transaction pool that the staking transaction has been processed but failed. So the staking transaction is staying in leader node's txPool and being executed for each block proposal. These staking transactions staying the transaction pool will block future transactions for a long time since they are taking low nonces, which might be the potential cause of transaction block issue. 2.2 Staking transaction validationEvery staking need to go through
2.3 ReproductionThe problem is reproduced in local net with sending delegation transaction with the same amount of balance. 3. Proposed fixes3.1 Temporary fix
3.2 Systematic fixFor each failed staking transaction, add it to block with a failed receipt, so that there is a confirmation of whether the staking transaction is failed or not. A fork is required. |
Recent hmy versions seem to have more issues with nonces getting stuck. We have had a few experiences with that in p-ops group, even myself in my testnet validator (no scripts or high frequency tx sending).
Seb also confirmed this is getting more frequent, and today even Li started experiencing it with his sending script.
Will post any screenshots if this happens to me again, but i think this can easily be reproduced; cc @sebastianj
The text was updated successfully, but these errors were encountered: