-
Notifications
You must be signed in to change notification settings - Fork 110
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
"invalid transaction" error after submitting a few transactions with polkadot.js #1568
Comments
I noticed some things that may help troubleshooting this bug, using the transfer.js script I added nonce to balance query. Sometimes when a tx is finalized, the nonce for the account isn't getting incremented:
Then running transfer.js still works, even tho the tx with nonce 5 seems to be in two different blocks. Is this normal? |
When testing with transfer.js I would get error:
indicating the transaction failed to validate, I saw two different errors happening on the node:
|
it looks like the first transfer didn't go through since the balance didn't change between the two script runs? |
interesting, good to know there are two errors. I think the |
this might potentially be related to #1580 |
@EclesioMeloJunior yes, that is likely the issue - maybe you could find how polkadot.js is populating those fields and see if it's calling some gossamer RPC method to do that? I'd suggest setting a log to see which RPC method is being called (see dot/rpc/subscription/websocket.go |
Fixed by PR #1605 |
Describe the bug
invalid transaction
and the log in the node shows:Expected Behavior
To Reproduce
Steps to reproduce the behaviour:
--chain dev
here feat: add --chain dev option #1561 or you can also manually set the babe-threshold on development and enable WS (tried w/ both and it was the same issue)transfer.js
which transfers from alice to bob:node transfer.js
, run it 3 or more times until you see theinvalid transaction
errorThe text was updated successfully, but these errors were encountered: