|
|
@ -438,6 +438,7 @@ func (vc *viewChange) InitPayload( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// isM1PayloadEmpty returns true if m1Payload is not set
|
|
|
|
// isM1PayloadEmpty returns true if m1Payload is not set
|
|
|
|
|
|
|
|
// this is an unlocked internal function call
|
|
|
|
func (vc *viewChange) isM1PayloadEmpty() bool { |
|
|
|
func (vc *viewChange) isM1PayloadEmpty() bool { |
|
|
|
return len(vc.m1Payload) == 0 |
|
|
|
return len(vc.m1Payload) == 0 |
|
|
|
} |
|
|
|
} |
|
|
@ -458,6 +459,8 @@ func (vc *viewChange) GetViewIDBitmap(viewID uint64) *bls_cosi.Mask { |
|
|
|
|
|
|
|
|
|
|
|
// GetM1Payload returns the m1Payload
|
|
|
|
// GetM1Payload returns the m1Payload
|
|
|
|
func (vc *viewChange) GetM1Payload() []byte { |
|
|
|
func (vc *viewChange) GetM1Payload() []byte { |
|
|
|
|
|
|
|
vc.vcLock.RLock() |
|
|
|
|
|
|
|
defer vc.vcLock.RUnlock() |
|
|
|
return vc.m1Payload |
|
|
|
return vc.m1Payload |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|