@@ -484,13 +484,13 @@ def get_scriptpubkeys_to_monitor(rpc, config):
484
484
first_spks = wal .get_scriptpubkeys (change = 0 , from_index = 0 ,
485
485
count = TEST_ADDR_COUNT )
486
486
first_addrs = [hashes .script_to_address (s , rpc ) for s in first_spks ]
487
+ logger .info (" " + config_mpk_key + " => " + " " .join (first_addrs ))
487
488
if not set (first_addrs ).issubset (imported_addresses ):
488
489
import_needed = True
489
490
wallets_imported += 1
490
491
for change in [0 , 1 ]:
491
492
spks_to_import .extend (wal .get_scriptpubkeys (change , 0 ,
492
493
int (config .get ("bitcoin-rpc" , "initial_import_count" ))))
493
- logger .info (" " + config_mpk_key + " => " + " " .join (first_addrs ))
494
494
#check whether watch-only addresses have been imported
495
495
watch_only_addresses = []
496
496
for key in config .options ("watch-only-addresses" ):
@@ -538,7 +538,8 @@ def get_scriptpubkeys_to_monitor(rpc, config):
538
538
spks_to_monitor .extend ([hashes .address_to_script (addr , rpc )
539
539
for addr in watch_only_addresses ])
540
540
et = time .time ()
541
- logger .info ("Obtained list of addresses to monitor in " + str (et - st ) + "sec" )
541
+ logger .info ("Obtained list of addresses to monitor in " + str (et - st )
542
+ + "sec" )
542
543
return False , spks_to_monitor , deterministic_wallets
543
544
544
545
def get_certs (config ):
@@ -576,7 +577,8 @@ def obtain_rpc_username_password(datadir):
576
577
"~/Library/Application Support/Bitcoin/" )
577
578
cookie_path = os .path .join (datadir , ".cookie" )
578
579
if not os .path .exists (cookie_path ):
579
- logger .warning ("Unable to find .cookie file, try setting `datadir` config" )
580
+ logger .warning ("Unable to find .cookie file, try setting `datadir`" +
581
+ " config" )
580
582
return None , None
581
583
fd = open (cookie_path )
582
584
username , password = fd .read ().strip ().split (":" )
0 commit comments