fix: exchange: allow up to 10k messages per block

Also explicitly limit how many bytes we're willing to read in one go
such that we're capable of reading a worst-case tipset (like, really,
never going to happen worst-case). Previously, this wasn't an issue.
However, we've bumped the max number of messages from 8,192 to 150,000
and need to limit allocations somewhere else.
This commit is contained in:
Steven Allen authored and jennijuju committed 2023-12-09 20:56:57 +08:00
1 parent 7e6b20cd97
commit 514129eee5
5 files changed
+161 -118

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ func main() {
err = gen.WriteTupleEncodersToFile("./chain/exchange/cbor_gen.go", "exchange",
exchange.Request{},
exchange.Response{},
exchange.CompactedMessages{},
exchange.CompactedMessagesCBOR{},
exchange.BSTipSet{},
)
if err != nil {