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 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
1918from test_framework .test_framework import BitcoinTestFramework
2019from test_framework .descriptors import descsum_create
2120from 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
You can’t perform that action at this time.
0 commit comments