File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 15
15
- `test_address()` is called to call getaddressinfo for an address on node1
16
16
and test the values returned."""
17
17
18
- from test_framework .address import key_to_p2pkh
19
18
from test_framework .blocktools import COINBASE_MATURITY
20
19
from test_framework .test_framework import BitcoinTestFramework
21
20
from test_framework .descriptors import descsum_create
@@ -120,12 +119,11 @@ def run_test(self):
120
119
121
120
self .log .info ("Internal addresses should be detected as such" )
122
121
key = get_generate_key ()
123
- addr = key_to_p2pkh (key .pubkey )
124
122
self .test_importdesc ({"desc" : descsum_create ("pkh(" + key .pubkey + ")" ),
125
123
"timestamp" : "now" ,
126
124
"internal" : True },
127
125
success = True )
128
- info = w1 .getaddressinfo (addr )
126
+ info = w1 .getaddressinfo (key . p2pkh_addr )
129
127
assert_equal (info ["ismine" ], True )
130
128
assert_equal (info ["ischange" ], True )
131
129
You can’t perform that action at this time.
0 commit comments