-
Notifications
You must be signed in to change notification settings - Fork 199
/
disabledEpochStartTrigger.go
83 lines (65 loc) · 1.62 KB
/
disabledEpochStartTrigger.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package disabled
import (
"github.com/multiversx/mx-chain-core-go/data"
)
type epochStartTrigger struct {
}
// NewEpochStartTrigger returns a new instance of epochStartTrigger
func NewEpochStartTrigger() *epochStartTrigger {
return &epochStartTrigger{}
}
// Update -
func (e *epochStartTrigger) Update(_ uint64, _ uint64) {
}
// ReceivedHeader -
func (e *epochStartTrigger) ReceivedHeader(_ data.HeaderHandler) {
}
// IsEpochStart -
func (e *epochStartTrigger) IsEpochStart() bool {
return false
}
// Epoch -
func (e *epochStartTrigger) Epoch() uint32 {
return 0
}
// MetaEpoch -
func (e *epochStartTrigger) MetaEpoch() uint32 {
return 0
}
// EpochStartRound -
func (e *epochStartTrigger) EpochStartRound() uint64 {
return 0
}
// SetProcessed -
func (e *epochStartTrigger) SetProcessed(_ data.HeaderHandler, _ data.BodyHandler) {
}
// RevertStateToBlock -
func (e *epochStartTrigger) RevertStateToBlock(_ data.HeaderHandler) error {
return nil
}
// EpochStartMetaHdrHash -
func (e *epochStartTrigger) EpochStartMetaHdrHash() []byte {
return nil
}
// GetSavedStateKey -
func (e *epochStartTrigger) GetSavedStateKey() []byte {
return nil
}
// LoadState -
func (e *epochStartTrigger) LoadState(_ []byte) error {
return nil
}
// SetFinalityAttestingRound -
func (e *epochStartTrigger) SetFinalityAttestingRound(_ uint64) {
}
// EpochFinalityAttestingRound -
func (e *epochStartTrigger) EpochFinalityAttestingRound() uint64 {
return 0
}
// RequestEpochStartIfNeeded -
func (e *epochStartTrigger) RequestEpochStartIfNeeded(_ data.HeaderHandler) {
}
// IsInterfaceNil -
func (e *epochStartTrigger) IsInterfaceNil() bool {
return e == nil
}