Skip to content

Commit

Permalink
fix: lockheight of mercury server
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Jun 5, 2024
1 parent cfaf3ce commit 1010580
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
docker exec $container_id bitcoin-cli -regtest -rpcuser=user -rpcpassword=pass createwallet $wallet_name
address=$(docker exec $container_id bitcoin-cli -regtest -rpcuser=user -rpcpassword=pass getnewaddress $wallet_name)
echo "New Wallet Address: $address"
docker exec $container_id bitcoin-cli -regtest -rpcuser=user -rpcpassword=pass generatetoaddress 101 "$address"
docker exec $container_id bitcoin-cli -regtest -rpcuser=user -rpcpassword=pass generatetoaddress 100 "$address"
docker exec $container_id bitcoin-cli -regtest -rpcuser=user -rpcpassword=pass sendtoaddress bcrt1pcngfxjdkf4r2h26k52dh5nunxg8m68uf4lkfhmfjvjj6agfkm5jqmftw4e 0.0001
- name: Verify ElectrumX Service with Curl
run: |
Expand Down Expand Up @@ -121,6 +121,12 @@ jobs:
run: |
cd clients/apps/nodejs
node test_basic_workflow2.js
- name: Print environment variables
run: printenv
- name: Print working directory
run: pwd
- name: List files in working directory
run: ls -al
- name: Tear Down
run: |
docker-compose down
3 changes: 3 additions & 0 deletions clients/libs/nodejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const wallet_manager = require('./wallet');

const getDatabase = async (clientConfig) => {
const databaseFile = clientConfig.databaseFile;
const absolutePath = path.resolve(databaseFile);
console.log(`Database file will be created at: ${absolutePath}`);

const db = new sqlite3.Database(databaseFile);
await sqlite_manager.createTables(db);
return db;
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ services:
environment:
LOCKBOX_URL: http://mercurylayer_enclave-sgx_1:18080
NETWORK: regtest
LOCKHEIGHT_INIT: 1000
LOCKHEIGHT_INIT: 100
LH_DECREMENT: 10
CONNECTION_STRING: postgres://postgres:pgpassword@postgres:5432/postgres
ports:
Expand Down

0 comments on commit 1010580

Please sign in to comment.