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

Mochimo 3.0 Suggestion - Increase OP_TF limit #77

Open
0rtis opened this issue Mar 25, 2021 · 1 comment
Open

Mochimo 3.0 Suggestion - Increase OP_TF limit #77

0rtis opened this issue Mar 25, 2021 · 1 comment

Comments

@0rtis
Copy link
Contributor

0rtis commented Mar 25, 2021

Increase the maximum number of block trailer sent by send_tf to 10000. A blocktrailer is only 160 bytes so 10000 will be 1.6Mb. It is a better alternative that dowloading the full tfile (more than 40Mb)

@0rtis 0rtis changed the title Mochimo 3.0 Suggestions - Increase OP_TF limit Mochimo 3.0 Suggestion - Increase OP_TF limit Mar 25, 2021
@chrisdigity
Copy link
Collaborator

As long as there are no issues with the idea, I'm thinking we could utilize the tx->len parameter for indicating the number of trailers we would like to receive. This imposes a natural 16-bit limit of 65,535 trailers ( approx. 10MB ). If this is too many, we could even expand the OP_TF functionality slightly to accept tx->len as a signed integer, imposing a natural signed 16-bit limit of 32,767 trailers ( approx. 5MB ) and allow the ability to retrieve trailers preceding the value in tx->blocknum by using a negative value.

This will also retain the OP code's functionality when the block number obtains a height greater than the bounds of 32-bits.

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

No branches or pull requests

2 participants