From d406701ee9a781ac49474163cc57b31c1ae20d57 Mon Sep 17 00:00:00 2001 From: jaypan Date: Mon, 11 Nov 2024 11:20:58 +0000 Subject: [PATCH] Ignore the extrinsic --- tools/monkey/monkey_reorg_batch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/monkey/monkey_reorg_batch.py b/tools/monkey/monkey_reorg_batch.py index 811b649..fe263bc 100644 --- a/tools/monkey/monkey_reorg_batch.py +++ b/tools/monkey/monkey_reorg_batch.py @@ -30,7 +30,10 @@ def monkey_execute_extrinsic_batch(self, substrate, kp_src, batch, RETRY_TIMES = 3 for i in range(RETRY_TIMES): try: - print(f'{substrate.url}, {batch}') + if len(str(batch)) > 1000: + print(f'{substrate.url}, {batch[:1000]}...') + else: + print(f'{substrate.url}, {batch}') receipt = origin_execute_extrinsic_batch(self, substrate, kp_src, batch, wait_for_finalization, tip) show_extrinsic(receipt, f'{substrate.url}') return receipt