Skip to content

Commit 944f174

Browse files
committed
feat: forward chainsyncrequest action for multi-chain batch sync
Whitelists the new action type for socket delivery to SSP Key. Pass-through only; rate limiting and the FCM notification path apply unchanged.
1 parent f64c448 commit 944f174

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/apiServices/actionApi.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ async function postAction(req, res) {
276276
data.action === 'enterprisevaultsign' ||
277277
data.action === 'enterprisekeynoncesync' ||
278278
data.action === 'enterprisefluxnodestart' ||
279-
data.action === 'recoveryrequest'
279+
data.action === 'recoveryrequest' ||
280+
data.action === 'chainsyncrequest'
280281
) {
281282
const ioKey = socket.getIOKey();
282283
ioKey.to(data.wkIdentity).emit(data.action, data);

src/lib/socket.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ function initIOKey(httpServer?, path = '/v1/socket/key') {
159159
actionToSend.action === 'enterprisevaultxpub' ||
160160
actionToSend.action === 'enterprisevaultsign' ||
161161
actionToSend.action === 'enterprisefluxnodestart' ||
162-
actionToSend.action === 'recoveryrequest'
162+
actionToSend.action === 'recoveryrequest' ||
163+
actionToSend.action === 'chainsyncrequest'
163164
) {
164165
ioKey.to(wkIdentity).emit(actionToSend.action, actionToSend);
165166
}

0 commit comments

Comments
 (0)