We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
upgradetohd
1 parent 88231b1 commit e155bd9Copy full SHA for e155bd9
test/functional/wallet_upgradetohd.py
@@ -247,6 +247,14 @@ def run_test(self):
247
assert_equal(12, w12.getbalance())
248
w12.unloadwallet()
249
250
+ self.log.info("Test upgradetohd with null characters in mnemonic passphrase")
251
+ # Null characters aren't allowed in mnemonic passphrases, the first one and everything after it is ignored
252
+ node.createwallet("wallet-13", blank=True)
253
+ w13 = node.get_wallet_rpc("wallet-13")
254
+ w13.upgradetohd(custom_mnemonic, "custom-passphrase\0with\0null\0characters")
255
+ assert_equal(12, w13.getbalance())
256
+ w13.unloadwallet()
257
+
258
259
if __name__ == '__main__':
260
WalletUpgradeToHDTest().main ()
0 commit comments