From 100864183825ff29f70ee2fdfdae8bbb241dd3cf Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 27 Aug 2021 09:28:31 +0300 Subject: [PATCH] Increase default `index_lookup_limit` to 200 Otherwise it fails when mining >100 regtest blocks to the same address. --- internal/config_specification.toml | 2 +- tests/run.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/config_specification.toml b/internal/config_specification.toml index e5d0168..e3a73f3 100644 --- a/internal/config_specification.toml +++ b/internal/config_specification.toml @@ -89,7 +89,7 @@ doc = "Don't sync mempool - queries will show only confirmed transactions." name = "index_lookup_limit" type = "usize" doc = "Number of transactions to lookup before returning an error, to prevent 'too popular' addresses from causing the RPC server to get stuck (0 - disable the limit)" -default = "100" +default = "200" [[param]] name = "server_banner" diff --git a/tests/run.sh b/tests/run.sh index fb99584..b8572dc 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -41,7 +41,6 @@ TIP=`$BTC getbestblockhash` export RUST_LOG=electrs=debug electrs \ - --index-lookup-limit 200 \ --db-dir=data/electrs \ --daemon-dir=data/bitcoin \ --network=regtest \