Skip to content

Conversation

jrick
Copy link
Member

@jrick jrick commented May 14, 2015

If a long reorganize occurs farther back than the last saved recent
block hash (currently max 20 are saved) a full rescan is triggered
since there is no guarantee the previous blocks weren't also removed
in the reorg. In this case, the address manager was set unsynced, but
transaction history was not rolled back as well. This commit corrects
this by unconfirming all transactions but those in the genesis block.

@davecgh
Copy link
Member

davecgh commented May 14, 2015

OK

@jrick jrick force-pushed the jrick_long_reorgs branch from 79c1f14 to edde89c Compare May 14, 2015 18:29
@conformal-deploy conformal-deploy merged commit edde89c into btcsuite:master May 14, 2015
If a long reorganize occurs farther back than the last saved recent
block hash (currently max 20 are saved) a full rescan is triggered
since there is no guarantee the previous blocks weren't also removed
in the reorg.  In this case, the address manager was set unsynced, but
transaction history was not rolled back as well.  This commit corrects
this by unconfirming all transactions but those in the genesis block.
@jrick jrick deleted the jrick_long_reorgs branch May 27, 2015 23:18
alexlyp added a commit to alexlyp/btcwallet that referenced this pull request Jun 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants