mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 13:55:23 -05:00
Merge #20139: Wallet: do not return warnings from UpgradeWallet()
9636962889
[upgradewallet] removed unused warning param (Sishir Giri) Pull request description: The `warning` variable was unused in `upgradewallet` so I removed it ACKs for top commit: practicalswift: ACK9636962889
: diff looks correct MarcoFalke: review ACK9636962889
jonatack: ACK9636962889
Tree-SHA512: 1d63186ce1e05e86a778340f2d7986c2cee1523de0a11cea39e8d148ac7ee26c49741dfa302b5c1cd1c8d74e67c1f9baee2763720c2d850b57da9a3fdce24565
This commit is contained in:
commit
c463f70fb0
3 changed files with 3 additions and 5 deletions
|
@ -4474,10 +4474,8 @@ static RPCHelpMan upgradewallet()
|
||||||
if (!request.params[0].isNull()) {
|
if (!request.params[0].isNull()) {
|
||||||
version = request.params[0].get_int();
|
version = request.params[0].get_int();
|
||||||
}
|
}
|
||||||
|
|
||||||
bilingual_str error;
|
bilingual_str error;
|
||||||
std::vector<bilingual_str> warnings;
|
if (!pwallet->UpgradeWallet(version, error)) {
|
||||||
if (!pwallet->UpgradeWallet(version, error, warnings)) {
|
|
||||||
throw JSONRPCError(RPC_WALLET_ERROR, error.original);
|
throw JSONRPCError(RPC_WALLET_ERROR, error.original);
|
||||||
}
|
}
|
||||||
UniValue obj(UniValue::VOBJ);
|
UniValue obj(UniValue::VOBJ);
|
||||||
|
|
|
@ -4102,7 +4102,7 @@ const CAddressBookData* CWallet::FindAddressBookEntry(const CTxDestination& dest
|
||||||
return &address_book_it->second;
|
return &address_book_it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CWallet::UpgradeWallet(int version, bilingual_str& error, std::vector<bilingual_str>& warnings)
|
bool CWallet::UpgradeWallet(int version, bilingual_str& error)
|
||||||
{
|
{
|
||||||
int prev_version = GetVersion();
|
int prev_version = GetVersion();
|
||||||
if (version == 0) {
|
if (version == 0) {
|
||||||
|
|
|
@ -1195,7 +1195,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Upgrade the wallet */
|
/** Upgrade the wallet */
|
||||||
bool UpgradeWallet(int version, bilingual_str& error, std::vector<bilingual_str>& warnings);
|
bool UpgradeWallet(int version, bilingual_str& error);
|
||||||
|
|
||||||
//! Returns all unique ScriptPubKeyMans in m_internal_spk_managers and m_external_spk_managers
|
//! Returns all unique ScriptPubKeyMans in m_internal_spk_managers and m_external_spk_managers
|
||||||
std::set<ScriptPubKeyMan*> GetActiveScriptPubKeyMans() const;
|
std::set<ScriptPubKeyMan*> GetActiveScriptPubKeyMans() const;
|
||||||
|
|
Loading…
Add table
Reference in a new issue