Skip to content

Commit

Permalink
fix: esplora and node server for web client
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Aug 8, 2024
1 parent 51a9a0e commit 84930c6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ jobs:
node test_basic_workflow2.js
node test_atomic_swap.js
mocha ./test/tb04-simple-lightning-latch.mjs --exit
- name: Run start-test-components.sh for web client tests
run: |
cd clients/tests/web
chmod +x start-test-components.sh
./start-test-components.sh
- name: Run web client Tests
run: |
cd clients/tests/web
Expand Down
4 changes: 2 additions & 2 deletions clients/tests/web/ClientConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
// };

const clientConfig = {
esploraServer: "http://localhost:8094/regtest",
statechainEntity: "http://127.0.0.1:8000",
esploraServer: "http://0.0.0.0:8094/regtest",
statechainEntity: "http://0.0.0.0:8000",
network: "regtest",
feeRateTolerance: 5,
confirmationTarget: 2,
Expand Down
27 changes: 27 additions & 0 deletions docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,33 @@ services:
depends_on:
- bitcoind

esplora:
image: blockstream/esplora
container_name: esplora-container
command: /srv/explorer/run.sh bitcoin-regtest explorer
ports:
- "50002:50002"
- "8094:80"
volumes:
- $PWD/data_bitcoin_regtest:/data
environment:
CORS_ALLOW: '*'
restart: unless-stopped
depends_on:
- bitcoind

node_server:
image: node:20.12.2
container_name: node-server
volumes:
- .:/usr/src/app
working_dir: /usr/src/app
command: ["node", "server-regtest.cjs"]
depends_on:
- esplora
ports:
- "3000:3000"

volumes:
bitcoin_data:
electrs-data:
Expand Down

0 comments on commit 84930c6

Please sign in to comment.