Merge #20230: wallet: Fix bug when just created encrypted wallet cannot get address

bf6855a9096b25aa75bba61b57ee1b2433d49707 wallet: Fix bug when just created encrypted wallet cannot get address (Hennadii Stepanov)

Pull request description:

  Fix https://github.com/bitcoin-core/gui/issues/105

ACKs for top commit:
  achow101:
    Tested ACK bf6855a9096b25aa75bba61b57ee1b2433d49707
  kristapsk:
    ACK bf6855a9096b25aa75bba61b57ee1b2433d49707
  meshcollider:
    Tested ACK bf6855a9096b25aa75bba61b57ee1b2433d49707

Tree-SHA512: eca0ab306d7206f2e5db568e83217bd854caac104379f4d8fb261db832d4d6310cbb1eab44ce9b05a5ac2eb5879a623b729752a88810f8370c24518a8d81292d
This commit is contained in:
Samuel Dobson 2020-11-02 11:54:49 +13:00 committed by PastaPastaPasta
parent f7f29d72fa
commit 94643ca47d

View File

@ -122,6 +122,7 @@ bool AddWallet(const std::shared_ptr<CWallet>& wallet)
assert(::masternodeSync != nullptr && ::coinJoinClientManagers != nullptr);
::coinJoinClientManagers->Add(*wallet);
g_wallet_init_interface.InitCoinJoinSettings(*::coinJoinClientManagers);
wallet->NotifyCanGetAddressesChanged();
return true;
}