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 .blocktools import COINBASE_MATURITY
2019from test_framework .test_framework import BitcoinTestFramework
2120from test_framework .descriptors import descsum_create
@@ -120,12 +119,11 @@ def run_test(self):
120119
121120 self .log .info ("Internal addresses should be detected as such" )
122121 key = get_generate_key ()
123- addr = key_to_p2pkh (key .pubkey )
124122 self .test_importdesc ({"desc" : descsum_create ("pkh(" + key .pubkey + ")" ),
125123 "timestamp" : "now" ,
126124 "internal" : True },
127125 success = True )
128- info = w1 .getaddressinfo (addr )
126+ info = w1 .getaddressinfo (key . p2pkh_addr )
129127 assert_equal (info ["ismine" ], True )
130128 assert_equal (info ["ischange" ], True )
131129
You can’t perform that action at this time.
0 commit comments