From c435ecc1703669bc7134d993fe7c05a5b420ccb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:12:19 +0200 Subject: [PATCH] Fix CLI argument parsing in record_rep_weights --- ci/record_rep_weights.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ci/record_rep_weights.py b/ci/record_rep_weights.py index cc7ea49ca8..320d38fd0b 100644 --- a/ci/record_rep_weights.py +++ b/ci/record_rep_weights.py @@ -1,6 +1,5 @@ import requests import argparse -from binascii import unhexlify from base64 import b32decode from binascii import hexlify, unhexlify @@ -11,7 +10,7 @@ parser.add_argument("--rpc", help="node rpc host:port", default="http://[::1]:7076") parser.add_argument( - "--limit", help="percentage of the active supply represented", default=0.99) + "--limit", help="percentage of the active supply represented", default=0.99, type=float) parser.add_argument( "--cutoff", help="stop using bootstrap reps this many blocks before the current block height", default=250000, type=int) args = parser.parse_args()