Skip to content

lnp2p should care less about transport layer #430

@delbonis

Description

@delbonis

We should already verify the pubkey before calling handleNewConnection and it should pass that in as an argument instead of having it there. We should try to isolate stuff interacting with lndc to probably just listen.go and move the "connecting to peers" code to like connect.go.

Really we should just move listening setup code to just pass in an already-ready net.Listener into the lnp2p.NewPeerManager function. Really just do more work to make lnp2p more separated from the rest of the network code.

This would be necessary for having BOLT 8 (transport) and BOLT 1 (messaging) support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactoringSignificant changes to existing code to improve robustness/performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions