You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin#22461: wallet: Change ScriptPubKeyMan::Upgrade default to True
5012a79 Test that descriptor wallet upgrade does nothing (Andrew Chow)
48bd7d3 Change ScriptPubKeyMan::Upgrade to default to return true (Andrew Chow)
Pull request description:
When adding a new ScriptPubKeyMan, it's likely that there will be nothing for `Upgrade` to do. If it is called (via `upgradewallet`), then it should do nothing, successfully. This PR changes the default `ScriptPubKeyMan::Upgrade` function so that it returns a success instead of failure when doing nothing.
Fixesbitcoin#22460
ACKs for top commit:
jonatack:
ACK 5012a79
meshcollider:
utACK 5012a79
Tree-SHA512: 578c6521e997f7bb5cc44be2cfe9e0a760b6bd4aa301026a6b8b3282e8757473e4cb9f68b2e79dacdc2b42dddae718450072e0a38817df205dfea177a74d7f3d
"result": "Already at latest version. Wallet version unchanged."ifunchangedelse"Wallet upgraded successfully from version {} to version {}.".format(previous_version, new_version),
@@ -352,6 +353,11 @@ def copy_split_hd():
352
353
v16_3_kvs=dump_bdb_kv(v16_3_wallet)
353
354
assertb'\x0adefaultkey'notinv16_3_kvs
354
355
356
+
ifself.is_sqlite_compiled():
357
+
self.log.info("Checking that descriptor wallets do nothing, successfully")
0 commit comments