Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Mar 10, 2021

Added the following changes:

  1. The wallet scan chain for transactions process will now return null if scan was successful. Otherwise, if a complete rescan was not possible (due to corruption or abort), returns pointer to the most recent block that could not be scanned.
  2. New rescanblockchain RPC command with two arguments start_height end_height to trigger a chain rescan at any time during runtime + test case (adaptation of docs(rpc): introduce more RPC help text and deduplicate governance RPC logic to resolve pending definitions dashpay/dash#7061).
  3. New abortrescan RPC command to stop any long running rescan if needed at runtime (this is helpful for example in case of importing a private/sapling key that if the user is not aware of the extra "scan" boolean argument, it will rescan the complete chain). Coming from [wallet] Rescan abortability bitcoin/bitcoin#10208.

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some initial styling changes left. also, prefer to have a blank line before the Arguments:, Result:, and Examples: sections for readability.

@furszy furszy force-pushed the 2020_rescanchain branch from 1ef181b to 896520e Compare March 10, 2021 22:50
@furszy
Copy link
Author

furszy commented Mar 10, 2021

updated per feedback, removed the quotes around numeric arguments.

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 896520e

This needs a bit more work to be usable from the GUI console, due to the cs_main lock, which is held for the whole duration (essentially we need to get to bitcoin#11281... the rabbit hole starts with #2277).
Other than that, this works as intended from a headless node.

@random-zebra random-zebra requested a review from Fuzzbawls April 1, 2021 20:41
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 896520e

@Fuzzbawls Fuzzbawls added the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Apr 4, 2021
@random-zebra random-zebra merged commit db2057e into PIVX-Project:master Apr 4, 2021
furszy added a commit that referenced this pull request Apr 6, 2021
7e0c709 Clean up importmulti help text (Fuzzbawls)
1cacda6 [Tests] Fix and Re-enable wallet_importmulti.py (random-zebra)
4ff0b4a [Trivial] NULL --> nullptr in skiplist_tests (random-zebra)
b53a986 Add unit test for FindEarliestAtLeast (Suhas Daftuar)
d1bb973 [RPC] Add importmulti call (random-zebra)

Pull request description:

  Based on top of:
  - [x] #2240

  Essentially backport bitcoin#7551 and bitcoin#9490, with more recent changes to adapt to the current sources.
  Fix and re-enable the `wallet_importmulti.py` functional test.

ACKs for top commit:
  Fuzzbawls:
    ACK 7e0c709
  furszy:
    ACK 7e0c709 and merging..

Tree-SHA512: 47a4452bfaeae16d09268d3eaa0c1a5d94a39accf86b7345818f8436222650515a8bf66ef331ba478058aabcbcfcf978192f39b349027e189b7ac41cd3e69a6e
random-zebra added a commit that referenced this pull request Apr 14, 2021
…fication fix

f2734f0 [Tests] Fix policyestimator and validation_block tests (random-zebra)
3448bc8 wallet: Minimal fix to restore conflicted transaction notifications (Antoine Riard)
ba9d84d feature_notifications.py mimic upstream is_wallet_compiled() function to make future back ports easier. (furszy)
37c9944 [mempool] Remove NotifyEntryAdded and NotifyEntryRemoved callbacks (John Newbery)
5cc619f [validation] Remove pool member from ConnectTrace (John Newbery)
1e453b7 [validation] Remove NotifyEntryRemoved callback from ConnectTrace (John Newbery)
e774bfd [validation] Remove conflictedTxs from PerBlockConnectTrace (John Newbery)
389680a [validation interface] Remove vtxConflicted from BlockConnected (furszy)
19c9383 [wallet] Notify conflicted transactions in TransactionRemovedFromMempool (John Newbery)
139882d Fire TransactionRemovedFromMempool from mempool  This commit fires TransactionRemovedFromMempool callbacks from the mempool and cleans up a bunch of code. (furszy)

Pull request description:

  PR built on top of #2209, #2235 and #2240 (don't get scared by the amount of commits, most of them are coming from 2209. Will disappear as soon as that one gets merged).

  Based on the brief talk originated in #2209 (comment) .

  Solving the conflicted transactions external listeners notification. Adapting the following PRs: bitcoin#14384, bitcoin#17477 and bitcoin#18982. Without functional test support, for the time being, for the lack of RBF functionality.

ACKs for top commit:
  Fuzzbawls:
    ACK f2734f0
  random-zebra:
    re-utACK f2734f0 and merging...

Tree-SHA512: 07d437e0d5e5d9798b16d982b6f58585d1f0dcd82251c5ac06f47e44233433831243d451ce43068e33c6002a64b76fa4d165167a2cbaeeedc28cde2019853565
@random-zebra random-zebra removed the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Aug 24, 2021
@furszy furszy deleted the 2020_rescanchain branch November 29, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants