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

Fix ZMQ Tx Pruning #9370

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Conversation

vtnerd
Copy link
Contributor

@vtnerd vtnerd commented Jun 18, 2024

When requesting pruned txes over ZMQ, the txes aren't fully pruned. This is due to a quirk in the unpacking of txes - the pruned elements are still read into the local tx. Fixing this is a bit more involved. The ZMQ output code then has no context/flag for prune in the signature portion (because it assumes the signatures wouldn't have been unpacked in. a pruned tx).

This is a simple hack that passes the prune information from the base tx into the next function call. This allows for full pruning, which saves on bandwidth, output time, and read time.

I have verified locally (with LWS) that this output is still valid.

@vtnerd
Copy link
Contributor Author

vtnerd commented Jun 19, 2024

Force pushed a much smaller changeset.

@luigi1111 luigi1111 merged commit cfd7f52 into monero-project:master Jul 16, 2024
18 checks passed
@vtnerd vtnerd deleted the fix/zmq_tx_pruning branch July 28, 2024 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants