diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-02-18 15:23:24 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-03-07 09:20:11 +0100 |
commit | 09ec3af16687aa301a921a1a6e94d7a57d4af141 (patch) | |
tree | 7fea9f9994827e4b6156f59484d13eef906d6708 /src/wallet.cpp | |
parent | c7c32627742575afeadca636df09e7014135e27b (diff) |
AddToWallet implies BindWallet
Now that AddToWallet is called when loading transactions from the
wallet database, BindWallet can be integrated into that and does not
need to be an extra step.
Leaves behaviour unchanged, but makes the
fFromLoadWallet/!fFromLoadWallet paths in AddToWallet a bit more
symmetric.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r-- | src/wallet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 3ecd994e9d..352e2a776e 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -470,6 +470,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn, bool fFromLoadWallet) if (fFromLoadWallet) { mapWallet[hash] = wtxIn; + mapWallet[hash].BindWallet(this); AddToSpends(hash); } else |