Skip to content

Commit

Permalink
dcou: SlotMeta::unset_parent()
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jul 9, 2023
1 parent 74d54cc commit 3251098
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ledger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ test-case = { workspace = true }
[build-dependencies]
rustc_version = { workspace = true }

[features]
dev-context-only-utils = []

[lib]
crate-type = ["lib"]
name = "solana_ledger"
Expand Down
3 changes: 2 additions & 1 deletion ledger/src/blockstore_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ impl SlotMeta {
self.is_connected()
}

/// Dangerous. Currently only needed for a local-cluster test
/// Dangerous.
#[cfg(feature = "dev-context-only-utils")]
pub fn unset_parent(&mut self) {
self.parent_slot = None;
}
Expand Down
1 change: 1 addition & 0 deletions local-cluster/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ fs_extra = { workspace = true }
gag = { workspace = true }
serial_test = { workspace = true }
solana-download-utils = { workspace = true }
solana-ledger = { workspace = true, features = ["dev-context-only-utils"] }
solana-logger = { workspace = true }

[package.metadata.docs.rs]
Expand Down

0 comments on commit 3251098

Please sign in to comment.