Mochimo 3.0 Suggestion - Increase OP_TF limit
0rtis opened this issue · 1 comments
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)
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.