Factor []NodeID type as NodeIDList

pull/874/head
Eugene Kim 6 years ago
parent ba9493859b
commit 828f2d0f41
  1. 5
      core/types/shard_state.go

@ -52,11 +52,14 @@ type NodeID struct {
BlsPublicKey BlsPublicKey
}
// NodeIDList is a list of NodeIDList.
type NodeIDList []NodeID
// Committee contains the active nodes in one shard
type Committee struct {
ShardID uint32
Leader NodeID
NodeList []NodeID
NodeList NodeIDList
}
// GetHashFromNodeList will sort the list, then use Keccak256 to hash the list

Loading…
Cancel
Save