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.
24 lines
398 B
24 lines
398 B
2 years ago
|
package consensus
|
||
|
|
||
|
type LockedFBFTPhase struct {
|
||
|
phase FBFTPhase
|
||
|
}
|
||
|
|
||
|
func NewLockedFBFTPhase(initialPhrase FBFTPhase) *LockedFBFTPhase {
|
||
|
return &LockedFBFTPhase{
|
||
|
phase: initialPhrase,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (a *LockedFBFTPhase) Set(phrase FBFTPhase) {
|
||
|
a.phase = phrase
|
||
|
}
|
||
|
|
||
|
func (a *LockedFBFTPhase) Get() FBFTPhase {
|
||
|
return a.phase
|
||
|
}
|
||
|
|
||
|
func (a *LockedFBFTPhase) String() string {
|
||
|
return a.Get().String()
|
||
|
}
|