Skip to content

Commit

Permalink
Add comment to remove eventually
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-kaufman committed May 24, 2021
1 parent 6fe360b commit fbab6eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cryptoadvance/specter/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ def is_ip_private(ip):


def get_address_from_dict(data_dict):
# TODO: Remove this helper function in favor of simple ["address"]
# when support for Bitcoin Core version < 22 is dropped
return (
data_dict["addresses"][0]
if "addresses" in data_dict and data_dict["addresses"][0]
Expand Down

0 comments on commit fbab6eb

Please sign in to comment.