Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delaying reveal process in the "make and reveal a deposit" test. (#692)
It happens that a reveal process starts when a deposit is not captured by the Bitcoin chain because it's out of sync. A delay is added to wait a bit for a chain to sync. This should fix: ``` 1) System Test - Minting and unminting when minting is initiated by making and revealing a deposit to the TBTCVault "before all" hook: make and reveal deposit for "should broadcast the deposit transaction on the Bitcoin network": Error: Electrum action failure: [daemon error: DaemonError({'code': -5, 'message': 'No such mempool or blockchain transaction. Use gettransaction for wallet transactions.'})] at Client.withElectrum (node_modules/@keep-network/tbtc-v2.ts/src/electrum.ts:190:13) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async Object.revealDeposit (node_modules/@keep-network/tbtc-v2.ts/src/deposit.ts:393:5) at async Context.<anonymous> (test/minting-unminting.test.ts:159:9) ``` which was observed here: https://github.com/keep-network/tbtc-v2/actions/runs/6061282789/job/16446311652
- Loading branch information