mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
channeldb: add IsDisabled method to ChannelEdgePolicy
This commit is contained in:
parent
78bdcbb115
commit
292defd6ba
1 changed files with 6 additions and 0 deletions
|
@ -2728,6 +2728,12 @@ func (c *ChannelEdgePolicy) Signature() (*btcec.Signature, error) {
|
|||
return sig, nil
|
||||
}
|
||||
|
||||
// IsDisabled determines whether the edge has the disabled bit set.
|
||||
func (c *ChannelEdgePolicy) IsDisabled() bool {
|
||||
return c.ChannelFlags&lnwire.ChanUpdateDisabled ==
|
||||
lnwire.ChanUpdateDisabled
|
||||
}
|
||||
|
||||
// FetchChannelEdgesByOutpoint attempts to lookup the two directed edges for
|
||||
// the channel identified by the funding outpoint. If the channel can't be
|
||||
// found, then ErrEdgeNotFound is returned. A struct which houses the general
|
||||
|
|
Loading…
Add table
Reference in a new issue