We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
msg-burst-bytes
1 parent b381060 commit 8bdf1d2Copy full SHA for 8bdf1d2
lncfg/gossip.go
@@ -70,8 +70,13 @@ func (g *Gossip) Validate() error {
70
g.MsgBurstBytes, lnwire.MaxSliceLength)
71
}
72
73
- if g.MsgRateBytes < g.PeerMsgRateBytes {
74
- return fmt.Errorf("msg-rate-bytes=%v must be at greater than "+
+ if g.MsgBurstBytes <= g.MsgRateBytes {
+ return fmt.Errorf("msg-burst-bytes=%v must be greater than "+
75
+ "msg-rate-bytes=%v", g.MsgBurstBytes, g.MsgRateBytes)
76
+ }
77
+
78
+ if g.MsgRateBytes <= g.PeerMsgRateBytes {
79
+ return fmt.Errorf("msg-rate-bytes=%v must be greater than "+
80
"peer-msg-rate-bytes=%v", g.MsgRateBytes,
81
g.PeerMsgRateBytes)
82
0 commit comments