solana/local-cluster
mergify[bot] 9d8d5f34f7 v1.18: pads last erasure batch with empty data shreds (backport of #639) (#927)
* pads last erasure batch with empty data shreds (#639)

For duplicate blocks prevention we want to verify that the last erasure
batch was sufficiently propagated through turbine. This requires
additional bookkeeping because, depending on the erasure coding schema,
the entire batch might be recovered from only a few coding shreds.

In order to simplify above, this commit instead ensures that the last
erasure batch has >= 32 data shreds so that the batch cannot be
recovered unless 32+ shreds are received from turbine or repair.

(cherry picked from commit 293414f482)

# Conflicts:
#	core/src/repair/repair_service.rs

* resolves merge conflicts

---------

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-04-26 15:17:21 +08:00
..
src v1.18: default staked client in LocalCluster (backport of #716) (#724) 2024-04-12 06:54:46 +08:00
tests v1.18: pads last erasure batch with empty data shreds (backport of #639) (#927) 2024-04-26 15:17:21 +08:00
.gitignore
Cargo.toml Split vote related code from runtime to its own crate (#32882) 2023-09-19 10:46:37 -07:00