Merge pull request #4786 from wpaulino/rate-limit-channel-updates
discovery: rate limit incoming channel updates
This commit is contained in:
4 files changed
+252
-7
No files matched your search
@@ -47,6 +47,11 @@ const (
|
||||
ChanUpdateDisabled
|
||||
)
|
||||
|
||||
// IsDisabled determines whether the channel flags has the disabled bit set.
|
||||
func (c ChanUpdateChanFlags) IsDisabled() bool {
|
||||
return c&ChanUpdateDisabled == ChanUpdateDisabled
|
||||
}
|
||||
|
||||
// String returns the bitfield flags as a string.
|
||||
func (c ChanUpdateChanFlags) String() string {
|
||||
return fmt.Sprintf("%08b", c)
|
||||
|
||||
Reference in new issue
Block a user