Browse Source

Add a new rpc-test-specified requirement: `importprivkey` outputs the associated address. (Test fails.)

v1.0.12-rc
Nathan Wilcox 7 years ago
parent
commit
63cdea4233
  1. 3
      qa/rpc-tests/key_import_export.py

3
qa/rpc-tests/key_import_export.py

@ -94,7 +94,8 @@ class KeyImportExportTest (BitcoinTestFramework):
verify_utxos(bob, amounts[:4])
logging.info("Importing privkey into charlie...")
charlie.importprivkey(privkey, '', True)
ipkaddr = charlie.importprivkey(privkey, '', True)
assert_equal(addr, ipkaddr)
# importprivkey should have rescanned, so this should pass:
verify_utxos(charlie, amounts[:4])

Loading…
Cancel
Save