diff options
| author | Gregory Maxwell <[email protected]> | 2013-05-22 14:01:31 -0700 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2013-05-22 14:01:31 -0700 |
| commit | 95c2ba168941958087d5dc7f1e3c9a89bb19f602 (patch) | |
| tree | 3c0114a3d892fa3269e081790a7a304f683050cf /src/init.cpp | |
| parent | Merge pull request #2652 from gavinandresen/version_0.8.2_final (diff) | |
| parent | More bestblock records in wallets (diff) | |
| download | discoin-95c2ba168941958087d5dc7f1e3c9a89bb19f602.tar.xz discoin-95c2ba168941958087d5dc7f1e3c9a89bb19f602.zip | |
Merge pull request #2682 from sipa/morewalletbb
More bestblock records in wallets
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index d619cb412..ebd9dee7b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -100,6 +100,7 @@ void Shutdown() StopNode(); { LOCK(cs_main); + pwalletMain->SetBestChain(CBlockLocator(pindexBest)); if (pblocktree) pblocktree->Flush(); if (pcoinsTip) @@ -998,6 +999,8 @@ bool AppInit2(boost::thread_group& threadGroup) if (!pwalletMain->SetAddressBookName(pwalletMain->vchDefaultKey.GetID(), "")) strErrors << _("Cannot write default address") << "\n"; } + + pwalletMain->SetBestChain(CBlockLocator(pindexBest)); } printf("%s", strErrors.str().c_str()); |