Skip to content
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

Error sending 1 million testnet Grin #725

Open
transatoshi-mw opened this issue Oct 4, 2024 · 6 comments
Open

Error sending 1 million testnet Grin #725

transatoshi-mw opened this issue Oct 4, 2024 · 6 comments
Assignees

Comments

@transatoshi-mw
Copy link

Describe the bug
Cant send a million tGrin from wallet via slatepack.

To Reproduce
Steps to reproduce the behavior:

  1. Entered 'grin-wallet send 1000000'.
  2. Error back is 'Wallet command failed. LibWallet Error: Wallet store error: Serialization error: too large read'.
  3. This is a tx of all coinbase outputs of tGrin.

OS: Debian 12
grin-wallet V5.3.3

@Anynomouss
Copy link

I think you should have a look at the transaction size due to that many input. My guess would be that the total size is larger than what a single block can handle. It is of course not possible to exceed the maximum block space. This is just a guess though, it should matter how large the total amount is, it is all about data limit.

@yeastplume yeastplume self-assigned this Nov 2, 2024
@transatoshi-mw
Copy link
Author

I was told it should be possible by yeastplume, and after further testing the limit to send grin is ~100k which is pretty bad

@Anynomouss
Copy link

Anynomouss commented Feb 10, 2025

Ok, but how many outputs used as inputs were in that transaction? You can first send yourself 10x 100k test grin to aggregate all those outputs (120000/60=2000 outputs as input for a single transaction). Then try sending yourself 1 million.
See if that works.

@transatoshi-mw
Copy link
Author

It's all coinbase outputs which would put ~16,666 of them at a total size of 566KB (16,666 * 34bytes). The only restriction on size I could find is that the maximum size for an armored SlatepackMessage string is 1MB. I will try your idea of aggregating the outputs to 100kツ each and try to send to myself in a little while.

@transatoshi-mw
Copy link
Author

Also this is a duplicate of:

#472

Which states there might be a soft limit of 500 inputs per tx.

@Anynomouss
Copy link

@transatoshi-mw Did you find time to try first aggregating and then sending a larger amount?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants