aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-04-15 22:10:54 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-04-17 20:00:55 +0200
commited6d0b5f852dc5f1c9407abecb5a9c6a7e42b4b2 (patch)
tree763b840f2619af642469d3894b88b682134f4425 /src/wallet.cpp
parentb97d54355e8239273b50c54dbedfde16ed82fd73 (diff)
downloadbitcoin-ed6d0b5f852dc5f1c9407abecb5a9c6a7e42b4b2.tar.xz
Remove headers.h
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 9f531082a9..6a2bf022bb 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -3,7 +3,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
-#include "headers.h"
#include "db.h"
#include "crypter.h"
@@ -137,6 +136,11 @@ bool CWallet::ChangeWalletPassphrase(const SecureString& strOldWalletPassphrase,
return false;
}
+void CWallet::SetBestChain(const CBlockLocator& loc)
+{
+ CWalletDB walletdb(strWalletFile);
+ walletdb.WriteBestBlock(loc);
+}
// This class implements an addrIncoming entry that causes pre-0.4
// clients to crash on startup if reading a private-key-encrypted wallet.