Commit 5adbd399 authored by Sam Boyer's avatar Sam Boyer

Express bit flag constants using iota bitshift.

parent bbcf304b
...@@ -56,9 +56,9 @@ func (d DiscReason) String() string { ...@@ -56,9 +56,9 @@ func (d DiscReason) String() string {
type Caps byte type Caps byte
const ( const (
CapPeerDiscTy = 0x01 CapPeerDiscTy = 1 << iota
CapTxTy = 0x02 CapTxTy
CapChainTy = 0x04 CapChainTy
CapDefault = CapChainTy | CapTxTy | CapPeerDiscTy CapDefault = CapChainTy | CapTxTy | CapPeerDiscTy
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment