-
Notifications
You must be signed in to change notification settings - Fork 278
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
Consensus failure (invalid chunk size) when attempting PayForData #433
Comments
Yes, I believe this was fixed in one of the release candidates v0.5.0-rc2 that is based on #419 That release is significantly more stable than master atm I'll dig into this more tmrw, just to make sure |
v0.5.0-rc2 does not have an error, but the transaction is still not being included in the block
Here I am searching for the tx. It's also not showing up in the block when I query the block it would have been included in
|
I think you need to specify a square size, in this case it should be 2, so use the flag celestia-appd tx payment payForData 1111111111111111 222222222222222222 --from=validator --keyring-backend test --chain-id test --square-sizes 2 we can add square sizes just by using a comma so if the transaction is not signed over a small enough size, then the tx will not get included until a block producer creates a block of that specific size. We also don't yet have a way to keep track of which transactions are signed over which square sizes in the mempool. Though we might want to look into doing this. The easiest solution would be to simply sign over all the viable square sizes by default. I have code in tests in #419 to generate the square sizes for us, so we should do that by default imo. but we still need to communicate this better to the user thanks for finding this @lzrscg ! |
ok here is what I am finding unfortuately, adding the square size does not work and produces the same output as before
setting square size to 4 (as well as other variations other than 2) gives an error
|
I was unable to recreate this error, do you mind double checking that the binary was restarted? if that doesn't work, do you mind starting from scratch by deleting the existing chain and running the script again? |
sorry, didn't mean to close (hit both of those indicate that the original failing transaction is still stuck in the mempool // ErrTxInMempoolCache defines an ABCI typed error where a tx already exists
// in the mempool.
ErrTxInMempoolCache = Register(RootCodespace, 19, "tx already in mempool") sequence == nonce // ErrWrongSequence defines an error where the account sequence defined in
// the signer info doesn't match the account's actual sequence number.
ErrWrongSequence = Register(RootCodespace, 32, "incorrect account sequence") |
Great idea. Fwiw, I did check that it was running the latest version.
I will reset the chain |
Yes, this is resolved. Thanks! |
Summary of Bug
When attempting a pay for data transaction
I am getting a consensus failure
Text version
Version
latest commit (745bd99973a9183f72777eaf63e4eb57ba58ec8a)
Steps to Reproduce
contrib/single-node.sh
celestia-appd tx payment payForData 1111111111111111 222222222222222222 --from=validator --keyring-backend test --chain-id test
For Admin Use
The text was updated successfully, but these errors were encountered: