github.com/aergoio/aergo@v1.3.1/p2p/p2pcommon/peerattribute.go (about)

     1  /*
     2   * @file
     3   * @copyright defined in aergo/LICENSE.txt
     4   */
     5  
     6  package p2pcommon
     7  
     8  type PeerAttribute struct {
     9  	Chain ChainType
    10  	RaftRole PeerRole
    11  	Producer bool
    12  }
    13  
    14  type ChainType uint8
    15  const (
    16  	DPOS ChainType = iota
    17  	RAFT
    18  )
    19  
    20  //go:generate stringer -type=ChainType