You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, BitcoinSerialization has a _needInstance() method to indicate that parsing is required.
In blocks, however, parsing all transactions (even if done lazily), requires significantly more work than parsing only the header, while for many properties of the block, only the header is required.
Proposed solution:
Introduce a _needHeader() that only deserializes the header and indicates that the header has been deserialized so that following calls to this method will return.
Follow the same methods to ensure the serialization stays consistent => see BitcoinSerialization._needInstance().
The same for _needTransactions().
The text was updated successfully, but these errors were encountered:
Currently,
BitcoinSerialization
has a_needInstance()
method to indicate that parsing is required.In blocks, however, parsing all transactions (even if done lazily), requires significantly more work than parsing only the header, while for many properties of the block, only the header is required.
Proposed solution:
Introduce a
_needHeader()
that only deserializes the header and indicates that the header has been deserialized so that following calls to this method will return.Follow the same methods to ensure the serialization stays consistent => see
BitcoinSerialization._needInstance()
.The same for
_needTransactions()
.The text was updated successfully, but these errors were encountered: