dcou: SlotMeta::unset_parent() (#32427)
This commit is contained in:
parent
74d54ccd7c
commit
8dfb956719
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue