mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Move wallet initialization logic from AppInit2 to CWallet::InitLoadWallet
This commit is contained in:
@@ -3411,7 +3411,17 @@ bool CWallet::InitLoadWallet()
|
||||
}
|
||||
walletInstance->SetBroadcastTransactions(GetBoolArg("-walletbroadcast", DEFAULT_WALLETBROADCAST));
|
||||
|
||||
{
|
||||
LOCK(walletInstance->cs_wallet);
|
||||
LogPrintf("setKeyPool.size() = %u\n", walletInstance->GetKeyPoolSize());
|
||||
LogPrintf("mapWallet.size() = %u\n", walletInstance->mapWallet.size());
|
||||
LogPrintf("mapAddressBook.size() = %u\n", walletInstance->mapAddressBook.size());
|
||||
}
|
||||
// Add wallet transactions that aren't already in a block to mapTransactions
|
||||
walletInstance->ReacceptWalletTransactions();
|
||||
|
||||
pwalletMain = walletInstance;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user