Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Separate timestamp from vote signature #216

Merged

Conversation

jinmannwong
Copy link
Contributor

  • Add extra timestamp signature into vote message
  • Remove timestamp signature when votes are included into a block

@@ -18,7 +18,7 @@ import (

const (
// MaxEvidenceBytes is a maximum size of any evidence (including amino overhead).
MaxEvidenceBytes int64 = 484
MaxEvidenceBytes int64 = 616
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Increased because votes now contain an extra signature

@@ -64,64 +64,56 @@ func TestVoteSignBytesTestVectors(t *testing.T) {
0: {
"", &Vote{},
// NOTE: Height and Round are skipped here. This case needs to be considered while parsing.
[]byte{0xd, 0x2a, 0xb, 0x8, 0x80, 0x92, 0xb8, 0xc3, 0x98, 0xfe, 0xff, 0xff, 0xff, 0x1},
[]byte{0x0},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes because timestamp has been removed from the return of the vote SignBytes function

@jinmannwong jinmannwong merged commit e32ca1d into fetchai:master Oct 21, 2020
@jinmannwong jinmannwong deleted the improvements/separate_timestamp_sig branch October 21, 2020 14:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants