Skip to content

Conversation

@random-zebra
Copy link

@random-zebra random-zebra commented Apr 1, 2021

random-zebra and others added 9 commits April 11, 2021 11:24
>>> backports bitcoin/bitcoin@ccf84bb

This change has no effect on wallet behavior.

On wallet startup, the transaction scan avoids reading any blocks with
timestamps older than the wallet birthday (less than nTimeFirstKey -
TIMESTAMP_WINDOW). This block skipping code currently resides in
CWallet::ScanForWalletTransactions but it doesn't really belong there
because it makes the implementation unnecessarily fragile and hard to
understand, and it never has any effect except at startup (because all
other callers do their rescans based on timestamps other than, but
always greater or equal to, nTimeFirstKey).
This way CWallet::RescanFromTime callers don't need to subtract
TIMESTAMP_WINDOW themselves.

This is pure refactoring, there is no change in behavior.
>>> backports bitcoin/bitcoin@bc356b4

and adapt RPC importsaplingkey and importsaplingviewingkey
@random-zebra
Copy link
Author

Rebased on master. Ready to go.

Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

Initial quick code review ACK 29c267e

Overall is looking really nice 👌

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.

Functional ACK

Great improvement in terms of the wallet's responsiveness! have been able to import/rescan addresses and wallets with thousands of transactions without issue.

One commented change in the importmulti help output that shouldn't be, otherwise good to go

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 29c267e

Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

ACK 1cde8b4 and merging

@furszy furszy merged commit 169260c into PIVX-Project:master Apr 13, 2021
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.

5 participants