mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-19 10:37:23 +01:00
funding: add String method for channelOpeningState
The newly added String method can be helpful in reading logs.
This commit is contained in:
@@ -553,6 +553,19 @@ const (
|
|||||||
addedToRouterGraph
|
addedToRouterGraph
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func (c channelOpeningState) String() string {
|
||||||
|
switch c {
|
||||||
|
case markedOpen:
|
||||||
|
return "markedOpen"
|
||||||
|
case fundingLockedSent:
|
||||||
|
return "fundingLocked"
|
||||||
|
case addedToRouterGraph:
|
||||||
|
return "addedToRouterGraph"
|
||||||
|
default:
|
||||||
|
return "unknown"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// NewFundingManager creates and initializes a new instance of the
|
// NewFundingManager creates and initializes a new instance of the
|
||||||
// fundingManager.
|
// fundingManager.
|
||||||
func NewFundingManager(cfg Config) (*Manager, error) {
|
func NewFundingManager(cfg Config) (*Manager, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user