From 196c47f616db3023489d3354638d998b9d75eaaf Mon Sep 17 00:00:00 2001 From: DhananjayPurohit Date: Wed, 5 Jun 2024 21:25:22 +0530 Subject: [PATCH] fix: lh_decrement and lockheight_init --- clients/apps/nodejs/test_basic_workflow2.js | 14 +++++++------- docker-compose-test.yml | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/clients/apps/nodejs/test_basic_workflow2.js b/clients/apps/nodejs/test_basic_workflow2.js index 15c6edae..3d8ca645 100644 --- a/clients/apps/nodejs/test_basic_workflow2.js +++ b/clients/apps/nodejs/test_basic_workflow2.js @@ -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); })(); diff --git a/docker-compose-test.yml b/docker-compose-test.yml index b94e6d6c..ee4ac5af 100644 --- a/docker-compose-test.yml +++ b/docker-compose-test.yml @@ -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"