diff options
| author | Patrick Strateman <[email protected]> | 2016-08-01 17:14:40 -0700 |
|---|---|---|
| committer | Patrick Strateman <[email protected]> | 2016-08-17 15:24:57 -0700 |
| commit | e86eb71604e73ad35b8b1f59d73af22e353a156e (patch) | |
| tree | 1e2c5327c62ef7ab427e46aa2a307f2ce6d77b58 /src/init.cpp | |
| parent | Merge #8419: Enable size accounting in mining unit tests (diff) | |
| download | discoin-e86eb71604e73ad35b8b1f59d73af22e353a156e.tar.xz discoin-e86eb71604e73ad35b8b1f59d73af22e353a156e.zip | |
Move CWallet::setKeyPool to private section of CWallet
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index 8d4a2cafb..a15fe2e13 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1439,9 +1439,12 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) LogPrintf("mapBlockIndex.size() = %u\n", mapBlockIndex.size()); LogPrintf("nBestHeight = %d\n", chainActive.Height()); #ifdef ENABLE_WALLET - LogPrintf("setKeyPool.size() = %u\n", pwalletMain ? pwalletMain->setKeyPool.size() : 0); - LogPrintf("mapWallet.size() = %u\n", pwalletMain ? pwalletMain->mapWallet.size() : 0); - LogPrintf("mapAddressBook.size() = %u\n", pwalletMain ? pwalletMain->mapAddressBook.size() : 0); + if (pwalletMain) { + LOCK(pwalletMain->cs_wallet); + LogPrintf("setKeyPool.size() = %u\n", pwalletMain->GetKeyPoolSize()); + LogPrintf("mapWallet.size() = %u\n", pwalletMain->mapWallet.size()); + LogPrintf("mapAddressBook.size() = %u\n", pwalletMain->mapAddressBook.size()); + } #endif if (GetBoolArg("-listenonion", DEFAULT_LISTEN_ONION)) |