|
@ -52,9 +52,6 @@ func (rs RoundStepType) String() string { |
|
|
//-----------------------------------------------------------------------------
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
// RoundState defines the internal consensus state.
|
|
|
// RoundState defines the internal consensus state.
|
|
|
// It should be immutable when returned from ConsensusState.GetRoundState(), but it's not.
|
|
|
|
|
|
// TODO: Actually, only the top pointer is copied,
|
|
|
|
|
|
// so access to field pointers is still racey
|
|
|
|
|
|
// NOTE: Not thread safe. Should only be manipulated by functions downstream
|
|
|
// NOTE: Not thread safe. Should only be manipulated by functions downstream
|
|
|
// of the cs.receiveRoutine
|
|
|
// of the cs.receiveRoutine
|
|
|
type RoundState struct { |
|
|
type RoundState struct { |
|
|