wallet: Fix bug when just created encrypted wallet cannot get address

This commit is contained in:
Hennadii Stepanov 2020-10-23 19:24:24 +03:00
parent 49984b44cf
commit bf6855a909
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -100,6 +100,7 @@ bool AddWallet(const std::shared_ptr<CWallet>& wallet)
if (i != vpwallets.end()) return false;
vpwallets.push_back(wallet);
wallet->ConnectScriptPubKeyManNotifiers();
wallet->NotifyCanGetAddressesChanged();
return true;
}