neoneo-go/pkg/consensus/recovery_request_test.go
Roman Khimov 253c39d4ee consensus: move stateroot message generation to commit phase
* update dbft library, change to 64-bit timestamps and CV reason
 * modify messages
 * generate stateroot witness data from prepare* messages during commit

Fix #1273.
2020-08-10 16:48:05 +03:00

14 lines
244 B
Go

package consensus
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestRecoveryRequest_Setters(t *testing.T) {
var r recoveryRequest
r.SetTimestamp(123 * nanoInSec)
require.EqualValues(t, 123*nanoInSec, r.Timestamp())
}