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

[wallet] Remove importmulti always-true check #9760

Merged
merged 1 commit into from
Feb 20, 2017

Conversation

ryanofsky
Copy link
Contributor

No change in behavior.

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.

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.

@morcos
Copy link
Contributor

morcos commented Feb 16, 2017

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.

@laanwj laanwj added this to the 0.14.0 milestone Feb 16, 2017
Copy link
Contributor

@gmaxwell gmaxwell left a comment

Choose a reason for hiding this comment

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

utACK.

@laanwj
Copy link
Member

laanwj commented Feb 17, 2017

This has a merge conflict now, either due to #9778 or #9761

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.
@ryanofsky
Copy link
Contributor Author

ryanofsky commented Feb 17, 2017

Rebased ee7caa0 -> ec1267f (multitaut.0 -> multitaut.1).

Merge conflict was unrelated, but on an adjacent line to this one line change.

@jtimon
Copy link
Contributor

jtimon commented Feb 18, 2017

utACK ec1267f

@laanwj laanwj merged commit ec1267f into bitcoin:master Feb 20, 2017
laanwj added a commit that referenced this pull request Feb 20, 2017
ec1267f [wallet] Remove importmulti always-true check (Russell Yanofsky)
laanwj pushed a commit that referenced this pull request Feb 20, 2017
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
codablock pushed a commit to codablock/dash that referenced this pull request Jan 26, 2018
ec1267f [wallet] Remove importmulti always-true check (Russell Yanofsky)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
ec1267f [wallet] Remove importmulti always-true check (Russell Yanofsky)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 27, 2019
ec1267f [wallet] Remove importmulti always-true check (Russell Yanofsky)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants