You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
649 B
18 lines
649 B
6 years ago
|
package service
|
||
|
|
||
|
import (
|
||
|
"github.com/harmony-one/harmony/p2p"
|
||
|
)
|
||
|
|
||
|
// NodeConfig defines a structure of node configuration
|
||
|
// that can be used in services.
|
||
|
// This is to pass node configuration to services and prvent
|
||
|
// cyclic imports
|
||
|
type NodeConfig struct {
|
||
|
Beacon p2p.GroupID // the beacon group ID
|
||
|
Group p2p.GroupID // the group ID of the shard
|
||
|
IsClient bool // whether this node is a client node, such as wallet/txgen
|
||
|
IsBeacon bool // whether this node is a beacon node or not
|
||
|
Actions map[p2p.GroupID]p2p.ActionType // actions on the groups
|
||
|
}
|