Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions electrumx/lib/coins.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ def lookup_coin_class(cls, name, net):
def sanitize_url(cls, url):
# Remove surrounding ws and trailing /s
url = url.strip().rstrip('/')
match = cls.RPC_URL_REGEX.match(url)
if not match:
raise CoinError(f'invalid daemon URL: "{url}"')
if match.groups()[1] is None:
url = f'{url}:{cls.RPC_PORT:d}'
if not url.startswith(('http://', 'https://')):
url = f'http://{url}'
return url + '/'
Expand Down Expand Up @@ -1268,6 +1263,7 @@ class Dogecoin(AuxPowMixin, Coin):
TX_PER_BLOCK = 20
REORG_LIMIT = 2000
DESERIALIZER = lib_tx.DeserializerAuxPowSegWit
RPC_PORT = 22555


class DogecoinTestnet(Dogecoin):
Expand Down