-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Labels
refactoringSignificant changes to existing code to improve robustness/performanceSignificant changes to existing code to improve robustness/performance
Description
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
Labels
refactoringSignificant changes to existing code to improve robustness/performanceSignificant changes to existing code to improve robustness/performance