mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-06-02 05:32:56 -04:00
fix trade context overrides in executeTrades()
This commit is contained in:
parent
2c07e82668
commit
86b41b87e9
1 changed files with 1 additions and 1 deletions
|
@ -1874,7 +1874,7 @@ async function executeTrades(ctxs: TradeContext[], executionCtx?: TradeContext):
|
|||
// assign default execution context
|
||||
if (!executionCtx) executionCtx = {};
|
||||
if (executionCtx.concurrentTrades === undefined) executionCtx.concurrentTrades = ctxs.length > 1;
|
||||
Object.assign(executionCtx, TestConfig.trade, executionCtx);
|
||||
Object.assign(executionCtx, TestConfig.trade, Object.assign({}, executionCtx));
|
||||
|
||||
// start mining if executing trades concurrently
|
||||
let miningStarted = executionCtx.concurrentTrades && await startMining();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue