protocol: req: use TipSetKey comment

This commit is contained in:
Lucas Molas 2020-08-05 19:45:10 -03:00
parent 65512193cc
commit 8e044be7c2

View File

@ -37,8 +37,8 @@ const WRITE_RES_DEADLINE = 60 * time.Second
type Request struct {
// List of ordered CIDs comprising a `TipSetKey` from where to start
// fetching backwards.
// FIXME: Why don't we send a `TipSetKey` instead of converting back
// and forth?
// FIXME: Consider using `TipSetKey` now (introduced after the creation
// of this protocol) instead of converting back and forth.
Head []cid.Cid
// Number of block sets to fetch from `Head` (inclusive, should always
// be in the range `[1, MaxRequestLength]`).