solana/ledger/src
steviez 01cd55a27a
Change SlotMeta is_connected bool to bitflags (#29001)
We currently use the is_connected field to be able to signal to
ReplayStage that a slot has replayable updates. It was discovered that
this functionality is effectively broken, and that is_connected is never
true. In order to convey this information to ReplayStage more
effectively, we need extra state information so this PR changes the
existing bool to bitflags with two bits.

From a compatibility standpoint, the is_connected bool was already
occupying one byte in the serialized SlotMeta in blockstore. Thus, the
change from a bool to bitflags still "fits" in that one byte allotment.

In consideration of a case where a client may wish to downgrade software
and use the same ledger, deserializing the bitflags into a bool could
fail if the new bit is set. As such, this PR introduces the second bit
field, but does not set it anywhere. Once clusters have mass adopted a
software version with this PR, a subsequent change to actually set and
use the new field can be introduced.
2022-12-01 14:42:35 -06:00
..
blockstore Remove Blockstore manual compaction code (#28409) 2022-10-28 10:39:00 +02:00
shred clippy for rust 1.65.0 (#28765) 2022-11-09 19:39:38 +00:00
ancestor_iterator.rs plumbs through flag to generate merkle variant of shreds 2022-09-23 16:45:18 +00:00
bank_forks_utils.rs Uses SnapshotHash type in snapshot archive fields (#28681) 2022-10-31 14:28:35 -04:00
bigtable_delete.rs
bigtable_upload.rs Rust v1.63 (#27303) 2022-08-22 18:01:03 -07:00
bigtable_upload_service.rs Standardize thread names 2022-08-20 07:49:39 -07:00
block_error.rs Fix derive_partial_eq_without_eq clippy lint 2022-05-22 22:22:21 -07:00
blockstore.rs Change SlotMeta is_connected bool to bitflags (#29001) 2022-12-01 14:42:35 -06:00
blockstore_db.rs Add comment block for DeadSlots LedgerColumn (#28341) 2022-10-20 09:47:19 -07:00
blockstore_meta.rs Change SlotMeta is_connected bool to bitflags (#29001) 2022-12-01 14:42:35 -06:00
blockstore_metrics.rs Distinguish turbine vs repair insertion metrics (#28980) 2022-11-30 09:03:53 -08:00
blockstore_options.rs Make RocksFifo storage size API expose an Option<u64> (#28192) 2022-10-04 12:38:40 -05:00
blockstore_processor.rs Update cost model to use requested_cu instead of estimated cu #27608 (#28281) 2022-11-22 11:55:56 -06:00
builtins.rs chore: update Solana docs and code comments that specify "BPF" to "SBF" 2022-10-31 14:14:25 -04:00
genesis_utils.rs
leader_schedule.rs Fix derive_partial_eq_without_eq clippy lint 2022-05-22 22:22:21 -07:00
leader_schedule_cache.rs clippy for rust 1.65.0 (#28765) 2022-11-09 19:39:38 +00:00
leader_schedule_utils.rs retransmit consecutive leader blocks (#22157) 2022-01-04 00:24:16 -08:00
lib.rs Remove runtime dependency from solana-transaction-status (#26930) 2022-08-05 00:20:27 -06:00
next_slots_iterator.rs Reformat imports to a consistent style for imports 2021-12-03 09:19:13 -08:00
rooted_slot_iterator.rs Reformat imports to a consistent style for imports 2021-12-03 09:19:13 -08:00
shred.rs caches reed-solomon encoder/decoder instance (#27510) 2022-09-25 18:09:47 +00:00
shredder.rs bypasses rayon thread-pool for single entry batches (#28077) 2022-09-26 21:32:58 +00:00
sigverify_shreds.rs patches clippy errors from new rust nightly release (#27996) 2022-09-22 22:23:03 +00:00
slot_stats.rs patches clippy errors from new rust nightly release (#28028) 2022-09-23 20:57:27 +00:00
staking_utils.rs checks account owner when initializing a vote-account (#25018) 2022-05-06 16:22:49 +00:00
token_balances.rs Remove runtime dependency from solana-transaction-status (#26930) 2022-08-05 00:20:27 -06:00