From 35ceb788dab0307a0e1d48daea45b77c271ec13e Mon Sep 17 00:00:00 2001 From: Gowtham Sundaralingam <35998898+SundarGowtham@users.noreply.github.com> Date: Fri, 24 May 2024 15:52:09 -0500 Subject: [PATCH] mempool backend <--> electrum fix (#196) --- devenv/local/docker-compose/docker-compose.yml | 5 ++--- devenv/local/docker-compose/electrs/docker/entrypoint.sh | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/devenv/local/docker-compose/docker-compose.yml b/devenv/local/docker-compose/docker-compose.yml index 0cf600406..ee601840c 100644 --- a/devenv/local/docker-compose/docker-compose.yml +++ b/devenv/local/docker-compose/docker-compose.yml @@ -74,7 +74,7 @@ services: - bitcoin environment: INIT_BTC_BLOCKS: 101 - BTC_BLOCK_GEN_TIME: 2 + BTC_BLOCK_GEN_TIME: 10 BITCOIN_RPC_HOST: "bitcoin" BITCOIN_RPC_PORT: 18443 BTC_RPCPASSWORD: devnet @@ -233,8 +233,7 @@ services: - 8999:8999 environment: # Connect to electrs host - # MEMPOOL_BACKEND: "electrum" - MEMPOOL_BACKEND: "none" + MEMPOOL_BACKEND: "electrum" ELECTRUM_HOST: "electrs" ELECTRUM_PORT: "60401" ELECTRUM_TLS_ENABLED: "false" diff --git a/devenv/local/docker-compose/electrs/docker/entrypoint.sh b/devenv/local/docker-compose/electrs/docker/entrypoint.sh index 996735caf..31869897c 100644 --- a/devenv/local/docker-compose/electrs/docker/entrypoint.sh +++ b/devenv/local/docker-compose/electrs/docker/entrypoint.sh @@ -11,8 +11,8 @@ echo "bitcoin node is ready" electrs --network regtest \ --jsonrpc-import \ --cookie "devnet:devnet" \ - --http-addr="127.0.0.1:3002" \ - --electrum-rpc-addr="127.0.0.1:60401" \ + --http-addr="0.0.0.0:3002" \ + --electrum-rpc-addr="0.0.0.0:60401" \ --daemon-rpc-addr="$BITCOIN_RPC_HOST:$BITCOIN_RPC_PORT" \ --electrum-txs-limit=2048 \ --utxos-limit=2048 \