Skip to content

Commit

Permalink
fix: lh_decrement and lockheight_init
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Jun 5, 2024
1 parent e8d4a52 commit 196c47f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions clients/apps/nodejs/test_basic_workflow2.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,17 +361,17 @@ async function depositAndRepeatSend(clientConfig, wallet_1_name) {
await walletTransfersToAnotherAndBroadcastsBackupTx(clientConfig, wallet_1_name, wallet_2_name);


// // Deposit, iterative self transfer
// Deposit, repeat send
let wallet_3_name = "w3";
let wallet_4_name = "w4";
await createWallet(clientConfig, wallet_3_name);
await walletTransfersToItselfTillLocktimeReachesBlockHeightAndWithdraw(clientConfig, wallet_3_name);
await createWallet(clientConfig, wallet_4_name);
await depositAndRepeatSend(clientConfig, wallet_3_name);
await walletTransfersToAnotherAndBroadcastsBackupTx(clientConfig, wallet_3_name, wallet_4_name);


// Deposit, repeat send
let wallet_4_name = "w4";
// Deposit, iterative self transfer
let wallet_5_name = "w5";
await createWallet(clientConfig, wallet_4_name);
await createWallet(clientConfig, wallet_5_name);
await depositAndRepeatSend(clientConfig, wallet_4_name);
await walletTransfersToAnotherAndBroadcastsBackupTx(clientConfig, wallet_4_name, wallet_5_name);
await walletTransfersToItselfTillLocktimeReachesBlockHeightAndWithdraw(clientConfig, wallet_5_name);
})();
4 changes: 2 additions & 2 deletions docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ services:
environment:
LOCKBOX_URL: http://mercurylayer_enclave-sgx_1:18080
NETWORK: regtest
LOCKHEIGHT_INIT: 1000
LH_DECREMENT: 10
LOCKHEIGHT_INIT: 1100
LH_DECREMENT: 1
CONNECTION_STRING: postgres://postgres:pgpassword@postgres:5432/postgres
ports:
- "8000:8000"
Expand Down

0 comments on commit 196c47f

Please sign in to comment.