-
Notifications
You must be signed in to change notification settings - Fork 198
/
shardingArgs.go
32 lines (30 loc) · 1.19 KB
/
shardingArgs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package nodesCoordinator
import (
"github.com/ElrondNetwork/elrond-go-core/data/endProcess"
"github.com/ElrondNetwork/elrond-go-core/hashing"
"github.com/ElrondNetwork/elrond-go-core/marshal"
"github.com/ElrondNetwork/elrond-go/storage"
)
// ArgNodesCoordinator holds all dependencies required by the nodes coordinator in order to create new instances
type ArgNodesCoordinator struct {
ShardConsensusGroupSize int
MetaConsensusGroupSize int
Marshalizer marshal.Marshalizer
Hasher hashing.Hasher
Shuffler NodesShuffler
EpochStartNotifier EpochStartEventNotifier
BootStorer storage.Storer
ShardIDAsObserver uint32
NbShards uint32
EligibleNodes map[uint32][]Validator
WaitingNodes map[uint32][]Validator
SelfPublicKey []byte
Epoch uint32
StartEpoch uint32
ConsensusGroupCache Cacher
ShuffledOutHandler ShuffledOutHandler
WaitingListFixEnabledEpoch uint32
ChanStopNode chan endProcess.ArgEndProcess
NodeTypeProvider NodeTypeProviderHandler
IsFullArchive bool
}