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 33 * call the corresponding GRPC apis for channel management.
44 */
55
6+ import { MED_TARGET_CONF } from '../config' ;
67import { toSatoshis , poll , getTimeTilAvailable } from '../helper' ;
78import * as log from './log' ;
89
@@ -316,6 +317,7 @@ class ChannelAction {
316317 const stream = this . _grpc . sendStreamCommand ( 'closeChannel' , {
317318 channelPoint : this . _parseChannelPoint ( channelPoint ) ,
318319 force,
320+ targetConf : force ? undefined : MED_TARGET_CONF ,
319321 } ) ;
320322 await new Promise ( ( resolve , reject ) => {
321323 stream . on ( 'data' , data => {
Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ describe('Action Channels Unit Tests', () => {
356356 . withArgs ( 'closeChannel' , {
357357 channelPoint : { fundingTxidStr : 'FFFF' , outputIndex : 1 } ,
358358 force : false ,
359+ targetConf : 16 ,
359360 } )
360361 . returns ( { on : onStub } ) ;
361362 await channel . closeChannel ( { channelPoint } ) ;
@@ -371,6 +372,7 @@ describe('Action Channels Unit Tests', () => {
371372 . withArgs ( 'closeChannel' , {
372373 channelPoint : { fundingTxidStr : 'FFFF' , outputIndex : 1 } ,
373374 force : true ,
375+ targetConf : undefined ,
374376 } )
375377 . returns ( { on : onStub } ) ;
376378 await channel . closeChannel ( { channelPoint, force : true } ) ;
You can’t perform that action at this time.
0 commit comments