Skip to content

Commit de5b4bf

Browse files
committed
merge bitcoin#26894: Remove redundant key_to_p2pkh call
1 parent 0f6e1f4 commit de5b4bf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/functional/wallet_importdescriptors.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
- `test_address()` is called to call getaddressinfo for an address on node1
1616
and test the values returned."""
1717

18-
from test_framework.address import key_to_p2pkh
1918
from test_framework.test_framework import BitcoinTestFramework
2019
from test_framework.descriptors import descsum_create
2120
from test_framework.util import (
@@ -125,12 +124,11 @@ def run_test(self):
125124

126125
self.log.info("Internal addresses should be detected as such")
127126
key = get_generate_key()
128-
addr = key_to_p2pkh(key.pubkey)
129127
self.test_importdesc({"desc": descsum_create("pkh(" + key.pubkey + ")"),
130128
"timestamp": "now",
131129
"internal": True},
132130
success=True)
133-
info = w1.getaddressinfo(addr)
131+
info = w1.getaddressinfo(key.p2pkh_addr)
134132
assert_equal(info["ismine"], True)
135133
assert_equal(info["ischange"], True)
136134

0 commit comments

Comments
 (0)