go-graphsync icon indicating copy to clipboard operation
go-graphsync copied to clipboard

Include block size in metadata

Open hannahhoward opened this issue 3 years ago • 1 comments

For metadata only requests, it may prove quite useful to add a BlockSize field to metadata, so we can factor raw bytes into decisions about how far to look ahead with fetching untrusted blocks.

hannahhoward avatar Mar 31 '22 20:03 hannahhoward

But we'd have to trust the peer to report the block size correctly, is that going to be a problem? I suppose we could check the size matches and abort requests if the peer reports anything wrong.

rvagg avatar Apr 01 '22 02:04 rvagg