mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
defs: check that backend URIs use https
This commit is contained in:
parent
a87dd7cd38
commit
efba885f6e
@ -33,7 +33,7 @@
|
|||||||
"min_address_length": 27,
|
"min_address_length": 27,
|
||||||
"max_address_length": 34,
|
"max_address_length": 34,
|
||||||
"bitcore": [
|
"bitcore": [
|
||||||
"http://live.pesetacoin.info"
|
"https://live.pesetacoin.info"
|
||||||
],
|
],
|
||||||
"blockbook": [],
|
"blockbook": [],
|
||||||
"cooldown": 100
|
"cooldown": 100
|
||||||
|
@ -177,6 +177,9 @@ def validate_btc(coin):
|
|||||||
errors.append("max address length must not be smaller than min address length")
|
errors.append("max address length must not be smaller than min address length")
|
||||||
|
|
||||||
for bc in coin["bitcore"] + coin["blockbook"]:
|
for bc in coin["bitcore"] + coin["blockbook"]:
|
||||||
|
if not bc.startswith("https://"):
|
||||||
|
errors.append("make sure URLs start with https://")
|
||||||
|
|
||||||
if bc.endswith("/"):
|
if bc.endswith("/"):
|
||||||
errors.append("make sure URLs don't end with '/'")
|
errors.append("make sure URLs don't end with '/'")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user