Skip to content

Commit

Permalink
Remove runtime dependency from solana-transaction-status (solana-labs…
Browse files Browse the repository at this point in the history
…#26930)

* Move RewardType out of runtime

* Move collect_token_balances to solana-ledger

* Remove solana-runtime dependency
  • Loading branch information
Tyera Eulberg authored Aug 5, 2022
1 parent 6c30ff2 commit 2dca239
Show file tree
Hide file tree
Showing 15 changed files with 527 additions and 512 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

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

8 changes: 4 additions & 4 deletions core/src/banking_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ use {
solana_client::{connection_cache::ConnectionCache, tpu_connection::TpuConnection},
solana_entry::entry::hash_transactions,
solana_gossip::{cluster_info::ClusterInfo, contact_info::ContactInfo},
solana_ledger::blockstore_processor::TransactionStatusSender,
solana_ledger::{
blockstore_processor::TransactionStatusSender, token_balances::collect_token_balances,
},
solana_measure::{measure, measure::Measure},
solana_metrics::inc_new_counter_info,
solana_perf::{
Expand Down Expand Up @@ -57,9 +59,7 @@ use {
transport::TransportError,
},
solana_streamer::sendmmsg::batch_send,
solana_transaction_status::token_balances::{
collect_token_balances, TransactionTokenBalancesSet,
},
solana_transaction_status::token_balances::TransactionTokenBalancesSet,
std::{
cmp,
collections::HashMap,
Expand Down
3 changes: 3 additions & 0 deletions ledger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ reed-solomon-erasure = { version = "5.0.3", features = ["simd-accel"] }
serde = "1.0.138"
serde_bytes = "0.11.6"
sha2 = "0.10.2"
solana-account-decoder = { path = "../account-decoder", version = "=1.11.6" }
solana-bpf-loader-program = { path = "../programs/bpf_loader", version = "=1.11.6" }
solana-entry = { path = "../entry", version = "=1.11.6" }
solana-frozen-abi = { path = "../frozen-abi", version = "=1.11.6" }
Expand All @@ -50,6 +51,8 @@ solana-storage-bigtable = { path = "../storage-bigtable", version = "=1.11.6" }
solana-storage-proto = { path = "../storage-proto", version = "=1.11.6" }
solana-transaction-status = { path = "../transaction-status", version = "=1.11.6" }
solana-vote-program = { path = "../programs/vote", version = "=1.11.6" }
spl-token = { version = "=3.3.1", features = ["no-entrypoint"] }
spl-token-2022 = { version = "=0.4.2", features = ["no-entrypoint"] }
static_assertions = "1.1.0"
tempfile = "3.3.0"
thiserror = "1.0"
Expand Down
5 changes: 2 additions & 3 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use {
crate::{
block_error::BlockError, blockstore::Blockstore, blockstore_db::BlockstoreError,
blockstore_meta::SlotMeta, leader_schedule_cache::LeaderScheduleCache,
token_balances::collect_token_balances,
},
chrono_humanize::{Accuracy, HumanTime, Tense},
crossbeam_channel::Sender,
Expand Down Expand Up @@ -49,9 +50,7 @@ use {
VersionedTransaction,
},
},
solana_transaction_status::token_balances::{
collect_token_balances, TransactionTokenBalancesSet,
},
solana_transaction_status::token_balances::TransactionTokenBalancesSet,
std::{
borrow::Cow,
collections::{HashMap, HashSet},
Expand Down
1 change: 1 addition & 0 deletions ledger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ mod shredder;
pub mod sigverify_shreds;
pub mod slot_stats;
mod staking_utils;
pub mod token_balances;

#[macro_use]
extern crate solana_metrics;
Expand Down
Loading

0 comments on commit 2dca239

Please sign in to comment.