wire: add NodeNetworkLimitedBlockThreshold const

NodeNetworkLimitedBlockThreshold is a constant representing how many
blocks from tip a node signaling NODE_NETWORK_LIMITED must serve.
This commit is contained in:
Calvin Kim 2023-09-25 18:39:52 +09:00
parent 80f5a0ffdf
commit 1012f1e4ba

View File

@ -151,6 +151,12 @@ func (f ServiceFlag) String() string {
return s
}
const (
// NodeNetworkLimitedBlockThreshold is the number of blocks that a node
// broadcasting SFNodeNetworkLimited MUST be able to serve from the tip.
NodeNetworkLimitedBlockThreshold = 288
)
// BitcoinNet represents which bitcoin network a message belongs to.
type BitcoinNet uint32