The core protocol of WoopChain
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.
 
 
 
woop/consensus/consensus_fbft.go

23 lines
398 B

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()
}