Skip to content

Commit

Permalink
Namecoin: Display base domain in DNS dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Nov 29, 2019
1 parent 960a728 commit d282ba8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions electrum_nmc/electrum/gui/qt/configure_dns_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,13 @@ def __init__(self, value, parent):
self.ui = Ui_DNSDialog()
self.ui.setupUi(self)

identifier = self.name_dialog.identifier.decode('ascii')
if self.name_dialog.namespace == "d":
self.base_domain = identifier[len("d/"):] + ".bit"
elif self.name_dialog.namespace == "dd":
self.base_domain = "(...).bit"
else:
raise Exception("Identifier '" + identifier + "' is not d/ or dd/")
subdomains = [self.base_domain]
self.ui.comboDomain.addItems(subdomains)

0 comments on commit d282ba8

Please sign in to comment.