filecoin-saturn / L1-node

Filecoin Saturn L1 Node • The edge cache layer of Filecoin's decentralized CDN 🪐
Other
140 stars 50 forks source link

Don't re-validate car streams from lassie #361

Closed willscott closed 1 year ago

willscott commented 1 year ago

The l1 shim currently in a lassie car request follows

This is a lot of CPU work to re-hash every block, which lassie has just validated on the same node. we should trust lassie as much as we trust L1 (they're the same trust domain) so re-hashing shouldn't be needed in this L1 shim path.

DiegoRBaquero commented 1 year ago

Fixed by https://github.com/filecoin-saturn/L1-node/commit/4c2676b31c8b856e308e0e77babb0af899ab88a5