mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Change ScriptPubKeyMan::Upgrade to default to return true
If a ScriptPubKeyMan does not implement Upgrade, then using upgraewallet will fail unexpectedly. By changing the default to return true, then this error can be avoided. This is still correct because a successful upgrade can be that nothing happened.
This commit is contained in:
@@ -207,7 +207,7 @@ public:
|
|||||||
virtual bool CanGetAddresses(bool internal = false) const { return false; }
|
virtual bool CanGetAddresses(bool internal = false) const { return false; }
|
||||||
|
|
||||||
/** Upgrades the wallet to the specified version */
|
/** Upgrades the wallet to the specified version */
|
||||||
virtual bool Upgrade(int prev_version, int new_version, bilingual_str& error) { return false; }
|
virtual bool Upgrade(int prev_version, int new_version, bilingual_str& error) { return true; }
|
||||||
|
|
||||||
virtual bool HavePrivateKeys() const { return false; }
|
virtual bool HavePrivateKeys() const { return false; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user