File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import Big from 'big.js';
55import BaseApi from './base' ;
66import GrpcClient from './grpc' ;
77
8+ const LOOP_INITIATOR = 'lit-ui' ;
9+
810/** the names and argument types for the subscription events */
911interface LoopEvents {
1012 monitor : LOOP . SwapStatus . AsObject ;
@@ -89,6 +91,7 @@ class LoopApi extends BaseApi<LoopEvents> {
8991 req . setAmt ( + amount ) ;
9092 req . setMaxSwapFee ( + quote . swapFee ) ;
9193 req . setMaxMinerFee ( + quote . minerFee ) ;
94+ req . setInitiator ( LOOP_INITIATOR ) ;
9295 if ( lastHop ) req . setLastHop ( Buffer . from ( lastHop , 'hex' ) . toString ( 'base64' ) ) ;
9396 if ( confTarget ) req . setHtlcConfTarget ( confTarget ) ;
9497 const res = await this . _grpc . request ( SwapClient . LoopIn , req , this . _meta ) ;
@@ -115,6 +118,7 @@ class LoopApi extends BaseApi<LoopEvents> {
115118 req . setMaxPrepayRoutingFee ( this . _calcRoutingFee ( + quote . prepayAmount ) ) ;
116119 req . setOutgoingChanSetList ( chanIds ) ;
117120 req . setSwapPublicationDeadline ( deadline ) ;
121+ req . setInitiator ( LOOP_INITIATOR ) ;
118122 if ( confTarget ) req . setSweepConfTarget ( confTarget ) ;
119123 if ( destAddress ) req . setDest ( destAddress ) ;
120124
You can’t perform that action at this time.
0 commit comments