record_labels returns all the possible labels for a record identified by a pubkey, used in updating timestamp of crds values: https://github.com/solana-labs/solana/blob/1792100e2/core/src/crds_value.rs#L560-L577 https://github.com/solana-labs/solana/blob/1792100e2/core/src/crds.rs#L240-L251 The code relies on CrdsValueLabel to be limited to a small deterministic set of possible values for a fixed pubkey. As we expand crds values to include duplicate shreds, this limits what the duplicate proofs can be keyed by in the table. In addition the computation of these labels is inefficient and will become more so as duplicate shreds and more types of crds values are added. An alternative is to maintain an index of all crds values associated with a pubkey. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
build.rs |