test: Remove redundant function call
This commit is contained in:
1 parent
3dd2762cf8
commit
61360e0cf9
1 file changed
+1
-3
@@ -15,7 +15,6 @@ variants.
|
||||
- `test_address()` is called to call getaddressinfo for an address on node1
|
||||
and test the values returned."""
|
||||
|
||||
from test_framework.address import key_to_p2pkh
|
||||
from test_framework.blocktools import COINBASE_MATURITY
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.descriptors import descsum_create
|
||||
@@ -120,12 +119,11 @@ class ImportDescriptorsTest(BitcoinTestFramework):
|
||||
|
||||
self.log.info("Internal addresses should be detected as such")
|
||||
key = get_generate_key()
|
||||
addr = key_to_p2pkh(key.pubkey)
|
||||
self.test_importdesc({"desc": descsum_create("pkh(" + key.pubkey + ")"),
|
||||
"timestamp": "now",
|
||||
"internal": True},
|
||||
success=True)
|
||||
info = w1.getaddressinfo(addr)
|
||||
info = w1.getaddressinfo(key.p2pkh_addr)
|
||||
assert_equal(info["ismine"], True)
|
||||
assert_equal(info["ischange"], True)
|
||||
|
||||
|
||||
Reference in new issue
Block a user