Skip to content

Commit

Permalink
Use Iterable instead of List for addr_list for import_addresses()
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsk committed Aug 22, 2023
1 parent 094df20 commit 52b007e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jmclient/jmclient/blockchaininterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def import_addresses_if_needed(self, addresses: Set[str], wallet_name: str) -> b
returns True if the sync call needs to do a system exit"""

@abstractmethod
def import_addresses(self, addr_list: List[str], wallet_name: str,
def import_addresses(self, addr_list: Iterable[str], wallet_name: str,
restart_cb: Optional[Callable[[str], None]] = None) -> None:
"""Imports addresses in a batch during initial sync.
Refuses to proceed if keys are found to be under control
Expand Down Expand Up @@ -437,7 +437,7 @@ def _rpc(self, method: str, args: Union[dict, list] = []) -> Any:
def is_address_labeled(self, utxo: dict, walletname: str) -> bool:
return ("label" in utxo and utxo["label"] == walletname)

def import_addresses(self, addr_list: List[str], wallet_name: str,
def import_addresses(self, addr_list: Iterable[str], wallet_name: str,
restart_cb: Callable[[str], None] = None) -> None:
requests = []
for addr in addr_list:
Expand Down

0 comments on commit 52b007e

Please sign in to comment.