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 7611137c1f
commit 9de9f9e115
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -240,6 +240,13 @@ proc setupProtocols(
).isOkOr: ).isOkOr:
return err("failed to mount waku store sync protocol: " & $error) 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) mountStoreClient(node)
if conf.remoteStoreNode.isSome(): if conf.remoteStoreNode.isSome():
let storeNode = parsePeerInfo(conf.remoteStoreNode.get()) let storeNode = parsePeerInfo(conf.remoteStoreNode.get())

View File

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