fission-codes / go-car-mirror

Generic Go implementation of the CAR Mirror protocol
Apache License 2.0
4 stars 0 forks source link

Streaming Part #1 - ensure that sink can start testing children of a batch of blocks before batch is completely sent #41

Open softwareplumber opened 1 year ago

softwareplumber commented 1 year ago

In theory if we send a car file with a batch of blocks, we should be able to begin testing whether we have children of blocks in the batch before the batch is completely received.

However, we need to use the car file manifest to ensure that we do not mark as 'wanted' any block that is in the batch, but simply not received yet.

justindotpub commented 1 year ago

Just in case you're planning on doing something with the list of roots in the CAR file, note the various caveats at https://ipld.io/specs/transport/car/carv1/#unresolved-items.