From d9574c2f14028297ad5121695a0c10e517bf638e Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Thu, 20 Jan 2011 13:10:01 -0500 Subject: Reconcile getbalance and listaccounts 0 in the shared-wallet case If you copied your wallet and used it on two different machines, the balance reported by getbalance and the sum(listaccounts) could disagree, because you might receive payments for an address that is in your wallet but not your address book. Now all such transactions are credited to the default empty-string account. --- init.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'init.cpp') diff --git a/init.cpp b/init.cpp index e114d80727..d93eaba795 100644 --- a/init.cpp +++ b/init.cpp @@ -346,6 +346,9 @@ bool AppInit2(int argc, char* argv[]) return false; } + if (GetBoolArg("-rescan")) + ScanForWalletTransactions(pindexGenesisBlock); + // Add wallet transactions that aren't already in a block to mapTransactions ReacceptWalletTransactions(); -- cgit v1.2.3