chain: use correct pruned node service bit

This commit is contained in:
Wilmer Paulino 2021-04-16 14:43:01 -07:00
parent 50978fcf79
commit 61d3b2da6d
No known key found for this signature in database
GPG key ID: 6DF57B9F9514972F

View file

@ -37,8 +37,10 @@ const (
requiredServices = wire.SFNodeNetwork | wire.SFNodeWitness
// prunedNodeService is the service bit signaled by pruned nodes on the
// network.
prunedNodeService wire.ServiceFlag = 1 << 11
// network. Note that this service bit can also be signaled by full
// nodes, except that they also signal wire.SFNodeNetwork, where as
// pruned nodes don't.
prunedNodeService wire.ServiceFlag = 1 << 10
)
// queryPeer represents a Bitcoin network peer that we'll query for blocks.