Skip to content

Commit

Permalink
Move accounts-db code to its own crate (solana-labs#32766)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 authored Aug 9, 2023
1 parent b97c451 commit f4287d7
Show file tree
Hide file tree
Showing 153 changed files with 1,380 additions and 1,003 deletions.
99 changes: 95 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ members = [
"account-decoder",
"accounts-bench",
"accounts-cluster-bench",
"accounts-db",
"banking-bench",
"banks-client",
"banks-interface",
Expand Down Expand Up @@ -293,6 +294,7 @@ socket2 = "0.5.3"
soketto = "0.7"
solana_rbpf = "=0.6.0"
solana-account-decoder = { path = "account-decoder", version = "=1.17.0" }
solana-accounts-db = { path = "accounts-db", version = "=1.17.0" }
solana-address-lookup-table-program = { path = "programs/address-lookup-table", version = "=1.17.0" }
solana-banks-client = { path = "banks-client", version = "=1.17.0" }
solana-banks-interface = { path = "banks-interface", version = "=1.17.0" }
Expand Down
2 changes: 1 addition & 1 deletion accounts-bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ edition = { workspace = true }
clap = { workspace = true }
log = { workspace = true }
rayon = { workspace = true }
solana-accounts-db = { workspace = true }
solana-logger = { workspace = true }
solana-measure = { workspace = true }
solana-runtime = { workspace = true }
solana-sdk = { workspace = true }
solana-version = { workspace = true }

Expand Down
4 changes: 2 additions & 2 deletions accounts-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ extern crate log;
use {
clap::{crate_description, crate_name, value_t, App, Arg},
rayon::prelude::*,
solana_measure::measure::Measure,
solana_runtime::{
solana_accounts_db::{
accounts::Accounts,
accounts_db::{
test_utils::{create_test_accounts, update_accounts_bench},
Expand All @@ -16,6 +15,7 @@ use {
ancestors::Ancestors,
rent_collector::RentCollector,
},
solana_measure::measure::Measure,
solana_sdk::{
genesis_config::ClusterType, pubkey::Pubkey, sysvar::epoch_schedule::EpochSchedule,
},
Expand Down
1 change: 1 addition & 0 deletions accounts-cluster-bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ log = { workspace = true }
rand = { workspace = true }
rayon = { workspace = true }
solana-account-decoder = { workspace = true }
solana-accounts-db = { workspace = true }
solana-clap-utils = { workspace = true }
solana-cli-config = { workspace = true }
solana-client = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion accounts-cluster-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use {
log::*,
rand::{thread_rng, Rng},
rayon::prelude::*,
solana_accounts_db::inline_spl_token,
solana_clap_utils::{
hidden_unless_forced, input_parsers::pubkey_of, input_validators::is_url_or_moniker,
},
solana_cli_config::{ConfigInput, CONFIG_FILE},
solana_client::transaction_executor::TransactionExecutor,
solana_gossip::gossip_service::discover,
solana_rpc_client::rpc_client::RpcClient,
solana_runtime::inline_spl_token,
solana_sdk::{
commitment_config::CommitmentConfig,
hash::Hash,
Expand Down Expand Up @@ -703,6 +703,7 @@ fn main() {
pub mod test {
use {
super::*,
solana_accounts_db::inline_spl_token,
solana_core::validator::ValidatorConfig,
solana_faucet::faucet::run_local_faucet,
solana_local_cluster::{
Expand Down
Loading

0 comments on commit f4287d7

Please sign in to comment.