Skip to content

Commit dff580a

Browse files
committed
introduce new crate for slice-root
1 parent 34f4c5a commit dff580a

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

Cargo.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ members = [
9898
"runtime",
9999
"runtime-transaction",
100100
"send-transaction-service",
101+
"slice-root",
101102
"stake-accounts",
102103
"storage-bigtable",
103104
"storage-bigtable/build-proto",
@@ -522,6 +523,7 @@ solana-shred-version = "3.0.0"
522523
solana-signature = { version = "3.1.0", default-features = false }
523524
solana-signer = "3.0.0"
524525
solana-signer-store = "0.1.0"
526+
solana-slice-root = { path = "slice-root", version = "=3.1.0" }
525527
solana-slot-hashes = "3.0.0"
526528
solana-slot-history = "3.0.0"
527529
solana-stable-layout = "3.0.0"

runtime/src/bank.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,6 @@ pub struct BankFieldsToSerialize {
478478
pub accounts_lt_hash: AccountsLtHash,
479479
}
480480

481-
#[derive(Copy, Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
482-
pub struct SliceRoot(pub Hash);
483-
484-
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
485-
pub struct AlpenglowBlockId(pub Hash);
486-
487481
// Can't derive PartialEq because RwLock doesn't implement PartialEq
488482
#[cfg(feature = "dev-context-only-utils")]
489483
impl PartialEq for Bank {

votor-messages/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ solana-frozen-abi-macro = { workspace = true, optional = true, features = [
3232
solana-hash = { workspace = true }
3333
solana-logger = { workspace = true }
3434
solana-program = { workspace = true }
35+
solana-slice-root = { workspace = true }
3536
solana-vote-interface = { workspace = true }
3637
spl-pod = { workspace = true }
3738

votor-messages/src/consensus_message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use {
55
solana_bls_signatures::Signature as BLSSignature,
66
solana_clock::Slot,
77
solana_hash::Hash,
8-
solana_runtime::bank::SliceRoot,
8+
solana_slice_root::SliceRoot,
99
};
1010

1111
/// The seed used to derive the BLS keypair

0 commit comments

Comments
 (0)