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;
22
22
// see: https://github.com/lightninglabs/pool/blob/master/order/interface.go#L35
23
23
export const ORDER_VERSION = 2 ;
24
24
25
+ const POOL_INITIATOR = 'lit-ui' ;
26
+
25
27
/** the names and argument types for the subscription events */
26
28
// eslint-disable-next-line @typescript-eslint/no-empty-interface
27
29
interface PoolEvents { }
@@ -63,6 +65,7 @@ class PoolApi extends BaseApi<PoolEvents> {
63
65
req . setAccountValue ( amount ) ;
64
66
req . setRelativeHeight ( expiryBlocks ) ;
65
67
req . setConfTarget ( confTarget ) ;
68
+ req . setInitiator ( POOL_INITIATOR ) ;
66
69
const res = await this . _grpc . request ( Trader . InitAccount , req , this . _meta ) ;
67
70
return res . toObject ( ) ;
68
71
}
@@ -176,6 +179,7 @@ class PoolApi extends BaseApi<PoolEvents> {
176
179
}
177
180
178
181
const req = new POOL . SubmitOrderRequest ( ) ;
182
+ req . setInitiator ( POOL_INITIATOR ) ;
179
183
180
184
const order = new POOL . Order ( ) ;
181
185
order . setTraderKey ( b64 ( traderKey ) ) ;
You can’t perform that action at this time.
0 commit comments