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

Optimize for outgoing message checksum. #152

Open
evoskuil opened this issue Apr 10, 2017 · 0 comments
Open

Optimize for outgoing message checksum. #152

evoskuil opened this issue Apr 10, 2017 · 0 comments
Milestone

Comments

@evoskuil
Copy link
Member

evoskuil commented Apr 10, 2017

Incoming message checksum can simply be disabled, which is the default configuration, but outgoing cannot, so:

Use the existing tx hash to obtain for the message checksum. This is the only message object that would have a precomputed bitcoin hash, but is is also the most common larger object.

Cache checksums on message objects and parameterize in send so that they are not recreated for each send of the same instance.

If checksum validation is enabled, cache the block value onto the message object for storage without the need for re-computation.

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

1 participant