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 @@ -22,6 +22,8 @@ export const MIN_FEE_RATE_KW = 253;
2222// see: https://github.com/lightninglabs/pool/blob/master/order/interface.go#L35
2323export const ORDER_VERSION = 2 ;
2424
25+ const POOL_INITIATOR = 'lit-ui' ;
26+
2527/** the names and argument types for the subscription events */
2628// eslint-disable-next-line @typescript-eslint/no-empty-interface
2729interface PoolEvents { }
@@ -63,6 +65,7 @@ class PoolApi extends BaseApi<PoolEvents> {
6365 req . setAccountValue ( amount ) ;
6466 req . setRelativeHeight ( expiryBlocks ) ;
6567 req . setConfTarget ( confTarget ) ;
68+ req . setInitiator ( POOL_INITIATOR ) ;
6669 const res = await this . _grpc . request ( Trader . InitAccount , req , this . _meta ) ;
6770 return res . toObject ( ) ;
6871 }
@@ -176,6 +179,7 @@ class PoolApi extends BaseApi<PoolEvents> {
176179 }
177180
178181 const req = new POOL . SubmitOrderRequest ( ) ;
182+ req . setInitiator ( POOL_INITIATOR ) ;
179183
180184 const order = new POOL . Order ( ) ;
181185 order . setTraderKey ( b64 ( traderKey ) ) ;
You can’t perform that action at this time.
0 commit comments