defs: check that backend URIs use https

pull/41/head
Pavol Rusnak 6 years ago
parent a87dd7cd38
commit efba885f6e
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -33,7 +33,7 @@
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [
"http://live.pesetacoin.info"
"https://live.pesetacoin.info"
],
"blockbook": [],
"cooldown": 100

@ -177,6 +177,9 @@ def validate_btc(coin):
errors.append("max address length must not be smaller than min address length")
for bc in coin["bitcore"] + coin["blockbook"]:
if not bc.startswith("https://"):
errors.append("make sure URLs start with https://")
if bc.endswith("/"):
errors.append("make sure URLs don't end with '/'")

Loading…
Cancel
Save