mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-06 17:47:01 +02:00
funding+peer: rename Manager interface to Controller
This commit is contained in:
@@ -5,16 +5,17 @@ import (
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
)
|
||||
|
||||
// Manager is an interface that describes the basic operation of a funding
|
||||
// manager. It should at a minimum process a subset of lnwire messages that
|
||||
// Controller is an interface with basic funding flow functions.
|
||||
// It describes the basic functionality of a funding manager.
|
||||
// It should at a minimum process a subset of lnwire messages that
|
||||
// are denoted as funding messages.
|
||||
type Manager interface {
|
||||
type Controller interface {
|
||||
// ProcessFundingMsg processes a funding message represented by the
|
||||
// lnwire.Message parameter along with the Peer object representing a
|
||||
// connection to the counterparty.
|
||||
ProcessFundingMsg(lnwire.Message, lnpeer.Peer)
|
||||
|
||||
// IsPendingChannel is used to determine whether to send an Error message
|
||||
// to the funding manager or not.
|
||||
// IsPendingChannel returns whether a particular 32-byte identifier
|
||||
// represents a pending channel in the Controller implementation.
|
||||
IsPendingChannel([32]byte, lnpeer.Peer) bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user