Open
Description
This is a feature request
Problem
Currently options for creating a node are convoluted and spread in the code base.
It get harder to handle and requires some TS hacks to prevent from compilation.
Proposed Solutions
For starters we should split building
of options and creation
of libp2p
which is main consumer of options.
const createOptions = buildCreateOptions(options);
const libp2p = await createLibp2pNode(createOptions);
const wakuNodeOptions = buildWakuNodeOptions(createOptions);
Second step is to consolidate leftover option updates specific for WakuNode
:
js-waku/packages/sdk/src/waku.ts
Line 96 in 9b0f1e8
Notes
Draft PR: #2072
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
To Do