Skip to content

Commit

Permalink
fix: blockheight from electrum server
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Jun 4, 2024
1 parent a54ccd1 commit 7e5b3af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
docker-compose -f docker-compose-test.yml up --build -d
- name: Wait for services to be ready
run: |
sleep 75 # Adjust time as necessary for services to initialize
sleep 80 # Adjust time as necessary for services to initialize
- name: Verify Bitcoin core Service with Curl
run: |
container_id=$(docker ps -qf "name=mercurylayer_bitcoin_1")
Expand Down
4 changes: 3 additions & 1 deletion clients/apps/nodejs/test_basic_workflow2.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ async function walletTransfersToItselfTillLocktimeReachesBlockHeightAndWithdraw(

console.log("coin: ", coin);

let block_header = client_config.electrum_client.block_headers_subscribe_raw();
const electrumClient = await getElectrumClient(clientConfig);

let block_header = await electrumClient.request('blockchain.headers.subscribe');
let currentBlockHeight = block_header.height;
console.log("Current block height: ", currentBlockHeight);

Expand Down

0 comments on commit 7e5b3af

Please sign in to comment.