From ceac540b8fd946aae5164c3d4461e0ca1691abbb Mon Sep 17 00:00:00 2001 From: 0xAN Date: Fri, 8 Nov 2024 21:54:20 +0800 Subject: [PATCH] fix: replace any `ttl-num-blocks` value (#4026) ## Overview On one of our node I found the default `ttl-num-blocks` value as `10` instead of `5`, so the default approach will not work in this case and it should be fixed with this commit. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dd246452e0..d946b5af93 100644 --- a/Makefile +++ b/Makefile @@ -309,11 +309,11 @@ configure-v3: @if [ "$$(uname)" = "Darwin" ]; then \ sed -i '' "s/^recv_rate = .*/recv_rate = $(SEND_RECV_RATE)/" $(CONFIG_FILE); \ sed -i '' "s/^send_rate = .*/send_rate = $(SEND_RECV_RATE)/" $(CONFIG_FILE); \ - sed -i '' "s/ttl-num-blocks = 5/ttl-num-blocks = 12/" $(CONFIG_FILE); \ + sed -i '' "s/ttl-num-blocks = .*/ttl-num-blocks = 12/" $(CONFIG_FILE); \ else \ sed -i "s/^recv_rate = .*/recv_rate = $(SEND_RECV_RATE)/" $(CONFIG_FILE); \ sed -i "s/^send_rate = .*/send_rate = $(SEND_RECV_RATE)/" $(CONFIG_FILE); \ - sed -i "s/ttl-num-blocks = 5/ttl-num-blocks = 12/" $(CONFIG_FILE); \ + sed -i "s/ttl-num-blocks = .*/ttl-num-blocks = 12/" $(CONFIG_FILE); \ fi .PHONY: configure-v3