fix: rest fix for sync protocol (#3503)

This commit is contained in:
Darshan K 2025-08-07 00:03:35 +05:30 committed by GitHub
parent f68d79996e
commit 393e3cce1f
2 changed files with 8 additions and 1 deletions

View File

@ -240,6 +240,13 @@ proc setupProtocols(
).isOkOr:
return err("failed to mount waku store sync protocol: " & $error)
if conf.remoteStoreNode.isSome():
let storeNode = parsePeerInfo(conf.remoteStoreNode.get()).valueOr:
return err("failed to set node waku store-sync peer: " & error)
node.peerManager.addServicePeer(storeNode, WakuReconciliationCodec)
node.peerManager.addServicePeer(storeNode, WakuTransferCodec)
mountStoreClient(node)
if conf.remoteStoreNode.isSome():
let storeNode = parsePeerInfo(conf.remoteStoreNode.get())

View File

@ -174,7 +174,7 @@ proc installAdminV1GetPeersHandler(router: var RestRouter, node: WakuNode) =
@[
WakuRelayCodec, WakuFilterSubscribeCodec, WakuStoreCodec, WakuLegacyStoreCodec,
WakuLegacyLightPushCodec, WakuLightPushCodec, WakuPeerExchangeCodec,
WakuReconciliationCodec,
WakuReconciliationCodec, WakuTransferCodec,
],
)