From e6b8d24eb4afd32ef733a119152958723d7889e3 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 27 Jan 2021 15:48:36 +0100 Subject: [PATCH] pool: add initiator string to RPC calls --- app/src/api/pool.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/api/pool.ts b/app/src/api/pool.ts index f8f9b269..7c5875a6 100644 --- a/app/src/api/pool.ts +++ b/app/src/api/pool.ts @@ -22,6 +22,8 @@ export const MIN_FEE_RATE_KW = 253; // see: https://github.com/lightninglabs/pool/blob/master/order/interface.go#L35 export const ORDER_VERSION = 2; +const POOL_INITIATOR = 'lit-ui'; + /** the names and argument types for the subscription events */ // eslint-disable-next-line @typescript-eslint/no-empty-interface interface PoolEvents {} @@ -63,6 +65,7 @@ class PoolApi extends BaseApi { req.setAccountValue(amount); req.setRelativeHeight(expiryBlocks); req.setConfTarget(confTarget); + req.setInitiator(POOL_INITIATOR); const res = await this._grpc.request(Trader.InitAccount, req, this._meta); return res.toObject(); } @@ -176,6 +179,7 @@ class PoolApi extends BaseApi { } const req = new POOL.SubmitOrderRequest(); + req.setInitiator(POOL_INITIATOR); const order = new POOL.Order(); order.setTraderKey(b64(traderKey));