Skip to content

Commit b4c6b70

Browse files
committed
pool: add initiator string to RPC calls
1 parent 7b5a044 commit b4c6b70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/api/pool.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
2323
export 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
2729
interface 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));

0 commit comments

Comments
 (0)