funding: rename from fmgr, change references

This commit is contained in:
eugene
2020-11-16 17:51:49 -05:00
parent cc17dd5804
commit 61e0f67edf
2 changed files with 4 additions and 4 deletions

20
funding/interfaces.go Normal file
View File

@@ -0,0 +1,20 @@
package funding
import (
"github.com/lightningnetwork/lnd/lnpeer"
"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
// are denoted as funding messages.
type Manager 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([32]byte, lnpeer.Peer) bool
}