diff options
| author | Pieter Wuille <[email protected]> | 2011-05-22 17:12:20 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2011-05-22 17:12:20 +0200 |
| commit | 1c528eeee939cacc0c100e5ca1e2d4ddb3c50227 (patch) | |
| tree | a515b2eba7a1ef43f1229e929ff89ec250b02395 /src/init.cpp | |
| parent | irc: #bitcoin is overflowing. split up into 100 randomly-joined channels. (diff) | |
| download | discoin-1c528eeee939cacc0c100e5ca1e2d4ddb3c50227.tar.xz discoin-1c528eeee939cacc0c100e5ca1e2d4ddb3c50227.zip | |
Update transactions already in the wallet when rescanning.
When rescanning, if the scanned transaction is already in the wallet, it
is skipped. However, if someone sends a transaction, does not wait for
confirmation, switches wallets, waits for a block that contains his original
transaction, and switches wallets again, a rescan will leave his wallet
transaction (which has no merkle branch, so no confirmations) untouched.
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 431c533a8..ad3570871 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -383,7 +383,7 @@ bool AppInit2(int argc, char* argv[]) { printf("Rescanning last %i blocks (from block %i)...\n", pindexBest->nHeight - pindexRescan->nHeight, pindexRescan->nHeight); nStart = GetTimeMillis(); - ScanForWalletTransactions(pindexRescan); + ScanForWalletTransactions(pindexRescan, true); printf(" rescan %15"PRI64d"ms\n", GetTimeMillis() - nStart); } |