mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-30 04:32:21 +02:00
test: Remove redundant function call
This commit is contained in:
parent
3dd2762cf8
commit
61360e0cf9
@ -15,7 +15,6 @@ variants.
|
|||||||
- `test_address()` is called to call getaddressinfo for an address on node1
|
- `test_address()` is called to call getaddressinfo for an address on node1
|
||||||
and test the values returned."""
|
and test the values returned."""
|
||||||
|
|
||||||
from test_framework.address import key_to_p2pkh
|
|
||||||
from test_framework.blocktools import COINBASE_MATURITY
|
from test_framework.blocktools import COINBASE_MATURITY
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
from test_framework.descriptors import descsum_create
|
from test_framework.descriptors import descsum_create
|
||||||
@ -120,12 +119,11 @@ class ImportDescriptorsTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
self.log.info("Internal addresses should be detected as such")
|
self.log.info("Internal addresses should be detected as such")
|
||||||
key = get_generate_key()
|
key = get_generate_key()
|
||||||
addr = key_to_p2pkh(key.pubkey)
|
|
||||||
self.test_importdesc({"desc": descsum_create("pkh(" + key.pubkey + ")"),
|
self.test_importdesc({"desc": descsum_create("pkh(" + key.pubkey + ")"),
|
||||||
"timestamp": "now",
|
"timestamp": "now",
|
||||||
"internal": True},
|
"internal": True},
|
||||||
success=True)
|
success=True)
|
||||||
info = w1.getaddressinfo(addr)
|
info = w1.getaddressinfo(key.p2pkh_addr)
|
||||||
assert_equal(info["ismine"], True)
|
assert_equal(info["ismine"], True)
|
||||||
assert_equal(info["ischange"], True)
|
assert_equal(info["ischange"], True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user