Skip to content

Commit

Permalink
feat: API allows using specific nodes for protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
danisharora099 committed Oct 24, 2024
1 parent 7c0ce7b commit c01da40
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/interfaces/src/protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends IDecodedMessage> = (
Expand Down

0 comments on commit c01da40

Please sign in to comment.