mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 03:26:38 +00:00
Express bit flag constants using iota bitshift.
This commit is contained in:
parent
bbcf304b99
commit
5adbd39946
1 changed files with 3 additions and 3 deletions
6
peer.go
6
peer.go
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue