d5baa6601c
types: Add test for IsVoteTypeValid
2017-12-21 18:13:31 +01:00
19eeef0aad
types: Rename exampleVote to examplePrecommit on vote_test
...
exampleVote doesn't express the type of the vote.
2017-12-21 18:13:31 +01:00
e76392e330
types: Update String() test to assert Prevote type
2017-12-20 23:21:30 +01:00
5ffb5f01cc
Add more tests for Proposal/Vote serialization
...
String() and Proposal valid after serializing.
To be safe, but mainly to increase test coverage for the PR
2017-12-12 12:59:51 +01:00
850310b034
Add test to isolate precommit failure
...
types/vote_test.go now checks signature on a serialized and
then deserialized vote. Turns out go-wire time encoding doesn't
respect timezones, and the signatures don't check out.
2017-12-12 12:59:51 +01:00
599673690c
Add timestamp to vote canonical encoding
2017-12-12 12:59:51 +01:00
655d829314
Fix proposal sign bytes. Start tracking blockID in POL
2016-11-15 18:35:17 -05:00