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

This commit is contained in:
Nathan Wilcox 2017-09-18 15:19:24 +09:00
parent d29b6b042f
commit 63cdea4233
1 changed files with 2 additions and 1 deletions

View File

@ -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])