-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add recovery message types #1608
base: feature/recovery
Are you sure you want to change the base?
Conversation
consensus/propagation/types.go
Outdated
} | ||
|
||
// ToProto converts PartMetaData to its protobuf representation. | ||
type HavePart struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be HavePart
or HaveParts
?
I'll defer to you @rach-id on when its okay to merge to the feature branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some optional changes that can be handled here or in a subsequent PR
"github.com/tendermint/tendermint/types" | ||
) | ||
|
||
// TxmetaData keeps track of the hash of a transaction and its location with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TxmetaData keeps track of the hash of a transaction and its location with the | |
// TxMetaData keeps track of the hash of a transaction and its location within the |
Start uint32 | ||
End uint32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit]
would be nice to specify how inclusive/exclusive there ranges are. Maybe just a comment saying that the range is [start, End)
if t.Start > t.End { | ||
return errors.New("TxMetaData: Start > End") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the range is [start, end]?
type CompactBlock struct { | ||
Height int64 `json:"height,omitempty"` | ||
Round int32 `json:"round,omitempty"` | ||
BpHash []byte `json:"bp_hash,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit]
what does bpHash stand for? maybe a comment specifying it's the block propagation hash
// index, along with the proof of inclusion to either the PartSetHeader hash or | ||
// the BPRoot in the CompactBlock. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do we know whether this part's proof is for the partsetheader or the bproot?
Description
still needs validate basic and tests