Only allow a single pending channel per-peer #32
Labels
brainstorming
Long term ideas/discussion/requests for feedback
funding
Related to the opening of new channels with funding transactions on the blockchain
p2p
Code related to the peer-to-peer behaviour
Currently the
fundingManager
, and therpcServer
will happily allow either a caller or remote peer to create multiple pending channels at a time. This behavior should instead be restricted to only allow a single pending channel at a time per-peer. Such a constraint acts as a defense against a slow-loris like DoS attack wherein a peer creates hundreds of thousands of pending channels, never intending to complete the funding workflow for them.Steps to completion:
fundingMgr
should reject all requests to either process or initialize a new channel funding workflow if one already exists for the targeted peer.lnwire.ErrorGeneric
messagesshould be sent to the offending peer if the constraint is violatedThe text was updated successfully, but these errors were encountered: