mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +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,
|
||||
"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…
Reference in New Issue
Block a user