Skip to content

feat: better create protocol options #2073

Open
@weboko

Description

@weboko

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:

const pingKeepAlive =

Notes

Draft PR: #2072

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions