{"action":"closed","issue":{"url":"https://api.github.com/repos/mazaclub/electrum-dash/issues/2","labels_url":"https://api.github.com/repos/mazaclub/electrum-dash/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mazaclub/electrum-dash/issues/2/comments","events_url":"https://api.github.com/repos/mazaclub/electrum-dash/issues/2/events","html_url":"https://github.com/mazaclub/electrum-dash/issues/2","id":120399404,"number":2,"title":"unable to  pay  using  command line ","user":{"login":"staier","id":1745233,"avatar_url":"https://avatars.githubusercontent.com/u/1745233?v=3","gravatar_id":"","url":"https://api.github.com/users/staier","html_url":"https://github.com/staier","followers_url":"https://api.github.com/users/staier/followers","following_url":"https://api.github.com/users/staier/following{/other_user}","gists_url":"https://api.github.com/users/staier/gists{/gist_id}","starred_url":"https://api.github.com/users/staier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staier/subscriptions","organizations_url":"https://api.github.com/users/staier/orgs","repos_url":"https://api.github.com/users/staier/repos","events_url":"https://api.github.com/users/staier/events{/privacy}","received_events_url":"https://api.github.com/users/staier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T13:15:48Z","updated_at":"2015-12-04T13:30:40Z","closed_at":"2015-12-04T13:30:40Z","body":"Hi. \r\nRelease branch  4.2.1\r\ni cannot  send  using  payto  command line.\r\naddress is not  recognized and electrum tries to  query DNS  system with the  payto address.\r\n\r\n./electrum-dash payto Xsih4hf4QLEA2RqE1s18hydBkg37111NbH 1.0\r\nError: Cannot read config file.\r\nPassword:\r\nTraceback (most recent call last):\r\n  File \"./electrum-dash\", line 346, in run_cmdline\r\n    result = func(*args)\r\n  File \"/home/sergey/electrum-dash/lib/commands.py\", line 70, in func_wrapper\r\n    return func(*args)\r\n  File \"/home/sergey/electrum-dash/lib/commands.py\", line 422, in payto\r\n    tx = self._mktx([(destination, amount)], tx_fee, change_addr, domain, nocheck, unsigned)\r\n  File \"/home/sergey/electrum-dash/lib/commands.py\", line 381, in _mktx\r\n    address = self._resolver(address)\r\n  File \"/home/sergey/electrum-dash/lib/commands.py\", line 344, in _resolver\r\n    out = self.contacts.resolve(x)\r\n  File \"/home/sergey/electrum-dash/lib/contacts.py\", line 29, in resolve\r\n    out = self.resolve_openalias(k)\r\n  File \"/home/sergey/electrum-dash/lib/contacts.py\", line 43, in resolve_openalias\r\n    records, validated = dnssec.query(url, dns.rdatatype.TXT)\r\n  File \"/home/sergey/electrum-dash/lib/dnssec.py\", line 256, in query\r\n    out = resolver.query(url, rtype)\r\n  File \"/usr/lib/python2.7/dist-packages/dns/resolver.py\", line 903, in query\r\n    raise NXDOMAIN\r\nNXDOMAIN\r\n\r\n\r\ni traced down  the  problem  to :\r\n\r\ndef is_address(addr):\r\n    ADDRESS_RE = re.compile('[1-9A-HJ-NP-Za-km-z]{26,}\\\\Z')\r\n    if not ADDRESS_RE.match(addr):\r\n        return False\r\n    try:\r\n        addrtype, h = bc_address_to_hash_160(addr)\r\n    except Exception:\r\n        return False\r\n    if addrtype not in [76, 16]:\r\n        return False\r\n    return addr == hash_160_to_bc_address(h, addrtype)# for some reason   here it does not  validate\r\n\r\n  "}}