This repository was archived by the owner on Feb 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 3
3
* call the corresponding GRPC apis for channel management.
4
4
*/
5
5
6
+ import { MED_TARGET_CONF } from '../config' ;
6
7
import { toSatoshis , poll , getTimeTilAvailable } from '../helper' ;
7
8
import * as log from './log' ;
8
9
@@ -316,6 +317,7 @@ class ChannelAction {
316
317
const stream = this . _grpc . sendStreamCommand ( 'closeChannel' , {
317
318
channelPoint : this . _parseChannelPoint ( channelPoint ) ,
318
319
force,
320
+ targetConf : force ? undefined : MED_TARGET_CONF ,
319
321
} ) ;
320
322
await new Promise ( ( resolve , reject ) => {
321
323
stream . on ( 'data' , data => {
Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ describe('Action Channels Unit Tests', () => {
356
356
. withArgs ( 'closeChannel' , {
357
357
channelPoint : { fundingTxidStr : 'FFFF' , outputIndex : 1 } ,
358
358
force : false ,
359
+ targetConf : 16 ,
359
360
} )
360
361
. returns ( { on : onStub } ) ;
361
362
await channel . closeChannel ( { channelPoint } ) ;
@@ -371,6 +372,7 @@ describe('Action Channels Unit Tests', () => {
371
372
. withArgs ( 'closeChannel' , {
372
373
channelPoint : { fundingTxidStr : 'FFFF' , outputIndex : 1 } ,
373
374
force : true ,
375
+ targetConf : undefined ,
374
376
} )
375
377
. returns ( { on : onStub } ) ;
376
378
await channel . closeChannel ( { channelPoint, force : true } ) ;
You can’t perform that action at this time.
0 commit comments