aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2011-05-22 17:12:20 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2011-05-22 17:12:20 +0200
commit1c528eeee939cacc0c100e5ca1e2d4ddb3c50227 (patch)
treea515b2eba7a1ef43f1229e929ff89ec250b02395 /src/main.h
parent69a27a4ec68e7a2ea6e481b950d11f5aea42c814 (diff)
downloadbitcoin-1c528eeee939cacc0c100e5ca1e2d4ddb3c50227.tar.xz
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/main.h')
-rw-r--r--src/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index 92b73fe5ad..a49966b4d4 100644
--- a/src/main.h
+++ b/src/main.h
@@ -86,7 +86,7 @@ bool AddKey(const CKey& key);
std::vector<unsigned char> GenerateNewKey();
bool AddToWallet(const CWalletTx& wtxIn);
void WalletUpdateSpent(const COutPoint& prevout);
-int ScanForWalletTransactions(CBlockIndex* pindexStart);
+int ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate = false);
void ReacceptWalletTransactions();
bool LoadBlockIndex(bool fAllowNew=true);
void PrintBlockTree();