-
Notifications
You must be signed in to change notification settings - Fork 36.7k
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] Remove importmulti always-true check #9760
Conversation
utACK ee7caa0 I'd prefer to merge this for 0.14 also so that a future code change doesn't break the rescan because there is no grace period in this check. |
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.
utACK.
Remove "nLowestTimestamp <= chainActive.Tip()->GetBlockTimeMax()" check from importmulti, which is always true because nLowestTimestamp is set to the minimum of the most recent block time and all the imported key timestamps, which is necessarily lower than the maximum block time.
ee7caa0
to
ec1267f
Compare
Rebased ee7caa0 -> ec1267f (multitaut.0 -> multitaut.1). Merge conflict was unrelated, but on an adjacent line to this one line change. |
utACK ec1267f |
ec1267f [wallet] Remove importmulti always-true check (Russell Yanofsky)
Remove "nLowestTimestamp <= chainActive.Tip()->GetBlockTimeMax()" check from importmulti, which is always true because nLowestTimestamp is set to the minimum of the most recent block time and all the imported key timestamps, which is necessarily lower than the maximum block time. Github-Pull: #9760 Rebased-From: ec1267f
ec1267f [wallet] Remove importmulti always-true check (Russell Yanofsky)
ec1267f [wallet] Remove importmulti always-true check (Russell Yanofsky)
ec1267f [wallet] Remove importmulti always-true check (Russell Yanofsky)
No change in behavior.
Remove
nLowestTimestamp <= chainActive.Tip()->GetBlockTimeMax()
check fromimportmulti, which is always true because nLowestTimestamp is set to the
minimum of the most recent block time and all the imported key timestamps,
which is necessarily lower than the maximum block time.
An alternative would to make initialize nLowestTimestamp to
numeric_limits<int64_t>::max()
so the check would actually do what it appears to be intended to do, and avoid ScanForWalletTransactions calls when all the imported key timestamps are in the future.