solana/programs
behzad nouri 45e26574f3
removes redundant shred.sanitize() from blockstore (#28016)
Shreds received from other nodes over the socket are sanitized when the
payload is deserialized:
https://github.com/solana-labs/solana/blob/315707504/ledger/src/shred/legacy.rs#L137
https://github.com/solana-labs/solana/blob/315707504/ledger/src/shred/legacy.rs#L77
https://github.com/solana-labs/solana/blob/315707504/ledger/src/shred/merkle.rs#L355
https://github.com/solana-labs/solana/blob/315707504/ledger/src/shred/merkle.rs#L439

Similarly, shreds recovered from erasure codes are also sanitized at
deserialization:
https://github.com/solana-labs/solana/blob/f02fe9c7e/ledger/src/shredder.rs#L330
or explicitly so for Merkle shreds:
https://github.com/solana-labs/solana/blob/f02fe9c7e/ledger/src/shred/merkle.rs#L753

Shreds generated locally by the node itself during its leader slots do
not need to be sanitized.

So sanitizing shreds in blockstore is redundant and wasteful. In
particular this becomes more wasteful with Merkle shreds because
sanitizing shreds would require verifying Merkle proof.
As such the commit removes redundant shred.sanitize() from blockstore.
2022-09-24 16:31:50 +00:00
..
address-lookup-table BorrowedAccount: add set_data_from_slice(), make set_data() take owned values (#27836) 2022-09-24 01:37:02 +01:00
address-lookup-table-tests Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
bpf removes redundant shred.sanitize() from blockstore (#28016) 2022-09-24 16:31:50 +00:00
bpf-loader-tests Require program account to be writable in extend program data ix (#27911) 2022-09-22 12:03:06 +08:00
bpf_loader BorrowedAccount: add set_data_from_slice(), make set_data() take owned values (#27836) 2022-09-24 01:37:02 +01:00
compute-budget Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
config Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
ed25519-tests Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
stake Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
vote Add structure to collect and coalesce vote packets (#27558) 2022-09-14 00:44:26 -07:00
zk-token-proof Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00