celestia-node icon indicating copy to clipboard operation
celestia-node copied to clipboard

refactor(ipld): use Set/GetCell API from rstm2d

Open Wondertan opened this issue 1 year ago • 1 comments

The latest rsmt2d version allows us to set cells/share directly into the imported square. Hence, we can avoid using flattened slices and the complexity it introduces when calculating position or index to set a share. Also, we now avoid reimporting the square on each repair retry and overall optimizing the whole process.

Closes #824 Blocked on https://github.com/celestiaorg/rsmt2d/issues/127 and https://github.com/celestiaorg/rsmt2d/pull/128

Wondertan avatar Sep 28 '22 11:09 Wondertan

The race tests will fail here until https://github.com/celestiaorg/rsmt2d/pull/128 is merged and released

Wondertan avatar Sep 28 '22 11:09 Wondertan

Rebased on main

Wondertan avatar Nov 10 '22 11:11 Wondertan