From efba885f6e4323868051cfc5b24bca52b42350a2 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 27 Oct 2018 01:23:49 +0200 Subject: [PATCH] defs: check that backend URIs use https --- defs/bitcoin/pesetacoin.json | 2 +- tools/coin_info.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/defs/bitcoin/pesetacoin.json b/defs/bitcoin/pesetacoin.json index 05237b464f..812cbb23cd 100644 --- a/defs/bitcoin/pesetacoin.json +++ b/defs/bitcoin/pesetacoin.json @@ -33,7 +33,7 @@ "min_address_length": 27, "max_address_length": 34, "bitcore": [ - "http://live.pesetacoin.info" + "https://live.pesetacoin.info" ], "blockbook": [], "cooldown": 100 diff --git a/tools/coin_info.py b/tools/coin_info.py index ec4e7805ed..cd9a606d73 100755 --- a/tools/coin_info.py +++ b/tools/coin_info.py @@ -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 '/'")