2019-03-01 19:00:43 -08:00
|
|
|
[package]
|
2019-08-21 10:23:33 -07:00
|
|
|
name = "solana-core"
|
2019-03-01 19:00:43 -08:00
|
|
|
description = "Blockchain, Rebuilt for Scale"
|
2022-02-17 22:44:47 -06:00
|
|
|
version = "1.8.17"
|
2019-03-01 19:00:43 -08:00
|
|
|
homepage = "https://solana.com/"
|
2021-03-10 13:46:17 -07:00
|
|
|
documentation = "https://docs.rs/solana-core"
|
2019-03-12 12:44:51 -07:00
|
|
|
readme = "../README.md"
|
2019-03-01 19:00:43 -08:00
|
|
|
repository = "https://github.com/solana-labs/solana"
|
2020-06-13 15:41:05 -06:00
|
|
|
authors = ["Solana Maintainers <maintainers@solana.foundation>"]
|
2019-03-01 19:00:43 -08:00
|
|
|
license = "Apache-2.0"
|
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
[badges]
|
|
|
|
codecov = { repository = "solana-labs/solana", branch = "master", service = "github" }
|
|
|
|
|
|
|
|
[dependencies]
|
2020-12-07 16:42:39 -08:00
|
|
|
ahash = "0.6.1"
|
2020-10-05 22:47:47 -06:00
|
|
|
base64 = "0.12.3"
|
2020-07-09 00:08:05 +00:00
|
|
|
bincode = "1.3.1"
|
2021-04-13 18:06:05 +08:00
|
|
|
blake3 = "0.3.7"
|
2020-03-18 21:37:21 -07:00
|
|
|
bv = { version = "0.11.1", features = ["serde"] }
|
2020-04-21 03:46:55 +00:00
|
|
|
bs58 = "0.3.1"
|
2020-03-05 17:07:18 -07:00
|
|
|
byteorder = "1.3.4"
|
2020-03-10 08:43:18 -06:00
|
|
|
chrono = { version = "0.4.11", features = ["serde"] }
|
2020-02-22 09:53:38 -07:00
|
|
|
crossbeam-channel = "0.4"
|
2021-03-01 12:38:19 -07:00
|
|
|
ed25519-dalek = "=1.0.1"
|
2021-02-17 10:46:20 -08:00
|
|
|
fs_extra = "1.2.0"
|
2020-03-11 21:31:50 -07:00
|
|
|
flate2 = "1.0"
|
2020-09-29 23:06:02 +00:00
|
|
|
indexmap = { version = "1.5", features = ["rayon"] }
|
2021-02-20 03:15:32 +05:00
|
|
|
libc = "0.2.81"
|
2020-12-11 15:16:59 -07:00
|
|
|
miow = "0.2.2"
|
2020-12-11 15:14:36 -07:00
|
|
|
net2 = "0.2.37"
|
2019-06-01 07:55:43 -07:00
|
|
|
num-traits = "0.2"
|
Cost model 1.7 (#20188)
* Cost Model to limit transactions which are not parallelizeable (#16694)
* * Add following to banking_stage:
1. CostModel as immutable ref shared between threads, to provide estimated cost for transactions.
2. CostTracker which is shared between threads, tracks transaction costs for each block.
* replace hard coded program ID with id() calls
* Add Account Access Cost as part of TransactionCost. Account Access cost are weighted differently between read and write, signed and non-signed.
* Establish instruction_execution_cost_table, add function to update or insert instruction cost, unit tested. It is read-only for now; it allows Replay to insert realtime instruction execution costs to the table.
* add test for cost_tracker atomically try_add operation, serves as safety guard for future changes
* check cost against local copy of cost_tracker, return transactions that would exceed limit as unprocessed transaction to be buffered; only apply bank processed transactions cost to tracker;
* bencher to new banking_stage with max cost limit to allow cost model being hit consistently during bench iterations
* replay stage feed back program cost (#17731)
* replay stage feeds back realtime per-program execution cost to cost model;
* program cost execution table is initialized into empty table, no longer populated with hardcoded numbers;
* changed cost unit to microsecond, using value collected from mainnet;
* add ExecuteCostTable with fixed capacity for security concern, when its limit is reached, programs with old age AND less occurrence will be pushed out to make room for new programs.
* investigate system performance test degradation (#17919)
* Add stats and counter around cost model ops, mainly:
- calculate transaction cost
- check transaction can fit in a block
- update block cost tracker after transactions are added to block
- replay_stage to update/insert execution cost to table
* Change mutex on cost_tracker to RwLock
* removed cloning cost_tracker for local use, as the metrics show clone is very expensive.
* acquire and hold locks for block of TXs, instead of acquire and release per transaction;
* remove redundant would_fit check from cost_tracker update execution path
* refactor cost checking with less frequent lock acquiring
* avoid many Transaction_cost heap allocation when calculate cost, which
is in the hot path - executed per transaction.
* create hashmap with new_capacity to reduce runtime heap realloc.
* code review changes: categorize stats, replace explicit drop calls, concisely initiate to default
* address potential deadlock by acquiring locks one at time
* Persist cost table to blockstore (#18123)
* Add `ProgramCosts` Column Family to blockstore, implement LedgerColumn; add `delete_cf` to Rocks
* Add ProgramCosts to compaction excluding list alone side with TransactionStatusIndex in one place: `excludes_from_compaction()`
* Write cost table to blockstore after `replay_stage` replayed active banks; add stats to measure persist time
* Deletes program from `ProgramCosts` in blockstore when they are removed from cost_table in memory
* Only try to persist to blockstore when cost_table is changed.
* Restore cost table during validator startup
* Offload `cost_model` related operations from replay main thread to dedicated service thread, add channel to send execute_timings between these threads;
* Move `cost_update_service` to its own module; replay_stage is now decoupled from cost_model.
* log warning when channel send fails (#18391)
* Aggregate cost_model into cost_tracker (#18374)
* * aggregate cost_model into cost_tracker, decouple it from banking_stage to prevent accidental deadlock. * Simplified code, removed unused functions
* review fixes
* update ledger tool to restore cost table from blockstore (#18489)
* update ledger tool to restore cost model from blockstore when compute-slot-cost
* Move initialize_cost_table into cost_model, so the function can be tested and shared between validator and ledger-tool
* refactor and simplify a test
* manually fix merge conflicts
* Per-program id timings (#17554)
* more manual fixing
* solve a merge conflict
* featurize cost model
* more merge fix
* cost model uses compute_unit to replace microsecond as cost unit
(#18934)
* Reject blocks for costs above the max block cost (#18994)
* Update block max cost limit to fix performance regession (#19276)
* replace function with const var for better readability (#19285)
* Add few more metrics data points (#19624)
* periodically report sigverify_stage stats (#19674)
* manual merge
* cost model nits (#18528)
* Accumulate consumed units (#18714)
* tx wide compute budget (#18631)
* more manual merge
* ignore zerorize drop security
* - update const cost values with data collected by #19627
- update cost calculation to closely proposed fee schedule #16984
* add transaction cost histogram metrics (#20350)
* rebase to 1.7.15
* add tx count and thread id to stats (#20451)
each stat reports and resets when slot changes
* remove cost_model feature_set
* ignore vote transactions from cost model
Co-authored-by: sakridge <sakridge@gmail.com>
Co-authored-by: Jeff Biseda <jbiseda@gmail.com>
Co-authored-by: Jack May <jack@solana.com>
2021-10-06 15:11:41 -05:00
|
|
|
histogram = "0.6.9"
|
|
|
|
itertools = "0.10.1"
|
|
|
|
log = "0.4.14"
|
2021-12-23 02:57:40 +00:00
|
|
|
lru = "0.7.1"
|
2020-04-27 09:33:33 -07:00
|
|
|
rand = "0.7.0"
|
|
|
|
rand_chacha = "0.2.2"
|
2021-02-15 14:30:43 -07:00
|
|
|
rand_core = "0.6.2"
|
2020-07-02 18:31:32 -07:00
|
|
|
raptorq = "1.4.2"
|
2021-01-15 18:07:35 +09:00
|
|
|
rayon = "1.5.0"
|
2021-02-12 03:27:37 -08:00
|
|
|
retain_mut = "0.1.2"
|
2021-02-05 19:23:24 +09:00
|
|
|
serde = "1.0.122"
|
2020-12-18 14:32:43 +00:00
|
|
|
serde_bytes = "0.11"
|
2019-11-26 14:44:20 -08:00
|
|
|
serde_derive = "1.0.103"
|
2022-02-17 22:44:47 -06:00
|
|
|
solana-account-decoder = { path = "../account-decoder", version = "=1.8.17" }
|
|
|
|
solana-accountsdb-plugin-manager = { path = "../accountsdb-plugin-manager", version = "=1.8.17" }
|
|
|
|
solana-banks-server = { path = "../banks-server", version = "=1.8.17" }
|
|
|
|
solana-clap-utils = { path = "../clap-utils", version = "=1.8.17" }
|
|
|
|
solana-bloom = { path = "../bloom", version = "=1.8.17" }
|
|
|
|
solana-client = { path = "../client", version = "=1.8.17" }
|
|
|
|
solana-gossip = { path = "../gossip", version = "=1.8.17" }
|
|
|
|
solana-ledger = { path = "../ledger", version = "=1.8.17" }
|
|
|
|
solana-logger = { path = "../logger", version = "=1.8.17" }
|
|
|
|
solana-merkle-tree = { path = "../merkle-tree", version = "=1.8.17" }
|
|
|
|
solana-metrics = { path = "../metrics", version = "=1.8.17" }
|
|
|
|
solana-measure = { path = "../measure", version = "=1.8.17" }
|
|
|
|
solana-net-utils = { path = "../net-utils", version = "=1.8.17" }
|
|
|
|
solana-perf = { path = "../perf", version = "=1.8.17" }
|
|
|
|
solana-poh = { path = "../poh", version = "=1.8.17" }
|
|
|
|
solana-program-test = { path = "../program-test", version = "=1.8.17" }
|
|
|
|
solana-rpc = { path = "../rpc", version = "=1.8.17" }
|
|
|
|
solana-runtime = { path = "../runtime", version = "=1.8.17" }
|
|
|
|
solana-sdk = { path = "../sdk", version = "=1.8.17" }
|
|
|
|
solana-frozen-abi = { path = "../frozen-abi", version = "=1.8.17" }
|
|
|
|
solana-frozen-abi-macro = { path = "../frozen-abi/macro", version = "=1.8.17" }
|
|
|
|
solana-streamer = { path = "../streamer", version = "=1.8.17" }
|
|
|
|
solana-transaction-status = { path = "../transaction-status", version = "=1.8.17" }
|
|
|
|
solana-version = { path = "../version", version = "=1.8.17" }
|
|
|
|
solana-vote-program = { path = "../programs/vote", version = "=1.8.17" }
|
2021-07-21 15:05:45 +00:00
|
|
|
spl-token-v2-0 = { package = "spl-token", version = "=3.2.0", features = ["no-entrypoint"] }
|
2019-07-31 17:58:10 -07:00
|
|
|
tempfile = "3.1.0"
|
2020-01-02 20:50:43 -07:00
|
|
|
thiserror = "1.0"
|
2022-02-17 22:44:47 -06:00
|
|
|
solana-rayon-threadlimit = { path = "../rayon-threadlimit", version = "=1.8.17" }
|
2021-12-23 18:16:56 +00:00
|
|
|
sys-info = "0.9.1"
|
2020-01-28 16:02:28 -08:00
|
|
|
trees = "0.2.1"
|
2019-11-21 19:39:29 -07:00
|
|
|
|
2019-03-01 19:00:43 -08:00
|
|
|
[dev-dependencies]
|
2021-08-27 00:55:02 +00:00
|
|
|
jsonrpc-core = "18.0.0"
|
|
|
|
jsonrpc-core-client = { version = "18.0.0", features = ["ipc", "ws"] }
|
2021-09-20 06:00:08 +00:00
|
|
|
jsonrpc-derive = "18.0.0"
|
|
|
|
jsonrpc-pubsub = "18.0.0"
|
2019-03-01 19:00:43 -08:00
|
|
|
matches = "0.1.6"
|
2021-01-12 17:13:47 -08:00
|
|
|
num_cpus = "1.13.0"
|
2021-03-18 10:03:50 -07:00
|
|
|
reqwest = { version = "0.11.2", default-features = false, features = ["blocking", "rustls-tls", "json"] }
|
2021-06-04 18:19:08 +00:00
|
|
|
serde_json = "1.0.56"
|
2020-03-12 11:14:37 -06:00
|
|
|
serial_test = "0.4.0"
|
2022-02-17 22:44:47 -06:00
|
|
|
solana-stake-program = { path = "../programs/stake", version = "=1.8.17" }
|
|
|
|
solana-version = { path = "../version", version = "=1.8.17" }
|
2021-02-20 03:15:32 +05:00
|
|
|
symlink = "0.1.0"
|
2019-12-18 18:31:04 -05:00
|
|
|
systemstat = "0.1.5"
|
2021-08-27 00:55:02 +00:00
|
|
|
tokio = { version = "1", features = ["full"] }
|
2019-05-07 22:41:47 -07:00
|
|
|
|
2020-07-06 20:22:23 +09:00
|
|
|
[build-dependencies]
|
|
|
|
rustc_version = "0.2"
|
|
|
|
|
2019-03-18 22:08:21 -07:00
|
|
|
[[bench]]
|
|
|
|
name = "banking_stage"
|
|
|
|
|
|
|
|
[[bench]]
|
2020-01-13 14:13:52 -07:00
|
|
|
name = "blockstore"
|
2019-03-18 22:08:21 -07:00
|
|
|
|
2020-10-23 14:17:37 +00:00
|
|
|
[[bench]]
|
2021-05-26 09:15:46 -06:00
|
|
|
name = "cluster_info"
|
2020-09-17 14:05:16 +00:00
|
|
|
|
2019-03-18 22:08:21 -07:00
|
|
|
[[bench]]
|
|
|
|
name = "gen_keys"
|
|
|
|
|
2019-05-17 11:09:42 -07:00
|
|
|
[[bench]]
|
|
|
|
name = "sigverify_stage"
|
|
|
|
|
2019-10-06 12:56:17 -07:00
|
|
|
[[bench]]
|
|
|
|
name = "retransmit_stage"
|
|
|
|
|
2020-04-16 18:18:28 -07:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
targets = ["x86_64-unknown-linux-gnu"]
|