Skip to content

Commit

Permalink
Namecoin: Handle unknown name_height in name_expires_in
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 10, 2020
1 parent 2e79c75 commit 1d834b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions electrum_nmc/electrum/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ def get_wallet_name_count(wallet, network):


def name_expires_in(name_height, chain_height):
if name_height is None:
return None

if name_height <= 0:
return None

Expand Down

0 comments on commit 1d834b4

Please sign in to comment.