mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
funding: add String method for channelOpeningState
The newly added String method can be helpful in reading logs.
This commit is contained in:
parent
eb5e32f221
commit
6f4a9d8661
1 changed files with 13 additions and 0 deletions
|
@ -553,6 +553,19 @@ const (
|
|||
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
|
||||
// fundingManager.
|
||||
func NewFundingManager(cfg Config) (*Manager, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue