253c39d4ee
* update dbft library, change to 64-bit timestamps and CV reason * modify messages * generate stateroot witness data from prepare* messages during commit Fix #1273.
17 lines
304 B
Go
17 lines
304 B
Go
package consensus
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestChangeView_Setters(t *testing.T) {
|
|
var c changeView
|
|
|
|
c.SetTimestamp(123 * nanoInSec)
|
|
require.EqualValues(t, 123*nanoInSec, c.Timestamp())
|
|
|
|
c.SetNewViewNumber(2)
|
|
require.EqualValues(t, 2, c.NewViewNumber())
|
|
}
|