-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
wallet: fetch pool txs in pruned form #9343
base: master
Are you sure you want to change the base?
Conversation
Funny, it looks to me as if the capability to get pruned pool transactions from the server was only added quite recently in #8076 by @j-berman, in method One question that I could not fully answer by looking at the (quite complex of course) code in Did anybody happen to test that already? |
This function isn't called when syncing, it's called when retrieving a wallet's history. Wallets still make the call to populate the history often though, this PR is an improvement (that I did indeed miss). It should retrieve txs in pruned form when syncing here: Lines 3040 to 3048 in cc73fe7
The wallet doesn't need past proofs to make a new proof. Pruned data can be discarded for purposes of tx construction (pruned nodes don't even have large swathes of prunable data stored and you can still sync with a pruned node and construct a tx). |
@j-berman : Not sure what you mean, in current master the But yeah, please forget the question in my comment, you are right, I clearly wasn't thinking far enough: Any tx that a wallet requests from its daemon is potentially pruned, any time, because the daemon's blockchain may be pruned. So it's clear the wallet already knows how to deal with that fact when building any proofs, and fetching pruned transactions from the pool can't possibly make a difference. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, @Rucknium and @jeffro256 , such a juicy long-hanging fruit :)
Is there still time to PR this to the release branch and get it into the next point update? |
|
@rbrunner7 yes, it will be included in the release @jeffro256 please open against release branch |
Not that it really matters, but I think at least for
|
Er, sorry, my bad again, that's more or less the same statement that you also made, @j-berman :) |
This will greatly reduce communication overhead when syncing the mempool. Thanks to @Rucknium for inquiring into the details of the wallet sync protocol, which caused me to notice that pool txs are requested with proofs attached.