From c01da40e19014e1fbe4e6bb9f44ec81312ae8317 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Thu, 24 Oct 2024 19:31:55 +0530 Subject: [PATCH] feat: API allows using specific nodes for protocol --- packages/interfaces/src/protocols.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/interfaces/src/protocols.ts b/packages/interfaces/src/protocols.ts index 74462efa13..34d03d4824 100644 --- a/packages/interfaces/src/protocols.ts +++ b/packages/interfaces/src/protocols.ts @@ -106,6 +106,15 @@ export type ProtocolCreateOptions = { * List of peers to use to bootstrap the node. Ignored if defaultBootstrap is set to true. */ bootstrapPeers?: string[]; + /** + * List of nodes' multiaddrs as strings to use for each protocol. If not specified, random nodes will be used. + * This should be used only if you know what you are doing. + */ + nodesToUse?: { + store?: string[]; + filter?: string[]; + lightpush?: string[]; + }; }; export type Callback = (