Commit Graph

24985 Commits

Author SHA1 Message Date
dependabot[bot] 89e36f60f4 build(deps): bump raptorq from 1.8.0 to 1.8.1 (#222)
Bumps [raptorq](https://github.com/cberner/raptorq) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/cberner/raptorq/releases)
- [Commits](https://github.com/cberner/raptorq/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: raptorq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-15 22:25:14 -05:00
ripatel-fd f2d77f0209 sdk: support Pubkey::to_bytes as constexpr (#220) 2024-03-15 22:25:14 -05:00
dependabot[bot] 94da52df70 build(deps): bump http from 0.2.11 to 0.2.12 (#85)
* build(deps): bump http from 0.2.11 to 0.2.12

Bumps [http](https://github.com/hyperium/http) from 0.2.11 to 0.2.12.
- [Release notes](https://github.com/hyperium/http/releases)
- [Changelog](https://github.com/hyperium/http/blob/v0.2.12/CHANGELOG.md)
- [Commits](https://github.com/hyperium/http/compare/v0.2.11...v0.2.12)

---
updated-dependencies:
- dependency-name: http
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [auto-commit] Update all Cargo lock files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2024-03-15 22:25:13 -05:00
steviez be38278281 Move default value for --rpc-pubsub-notification-threads to CLI (#158)
The default value was previously being determined down where the thread
pool is being created. Providing a default value at the CLI level is
consistent with other args, and gives an operator better visibility into
what the default will actually be
2024-03-15 22:24:45 -05:00
Greg Cusack 9a8da98577 Fully remove `ThinClient` from `bench-tps` (#132)
remove ThinClient from bench-tps
2024-03-15 22:22:45 -05:00
Brooks 574c1ad195 Adds a new bench for accounts delta hash (#210) 2024-03-15 22:22:45 -05:00
steviez 55408093cd Make ReplayStage own the threadpool for tx replay (#190)
The threadpool used to replay multiple transactions in parallel is
currently global state via a lazy_static definition. Making this pool
owned by ReplayStage will enable subsequent work to make the pool
size configurable on the CLI.

This makes `ReplayStage` create and hold the threadpool which is passed
down to blockstore_processor::confirm_slot().

blockstore_processor::process_blockstore_from_root() now creates its'
own threadpool as well; however, this pool is only alive while for
the scope of that function and does not persist the lifetime of the
process.
2024-03-15 22:22:45 -05:00
Andrew Fitzgerald e8b5f8f375 Remove unused account_deps (#188) 2024-03-15 22:22:45 -05:00
dependabot[bot] 4cddf3e5aa build(deps): bump proc-macro2 from 1.0.78 to 1.0.79 (#203)
* build(deps): bump proc-macro2 from 1.0.78 to 1.0.79

Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.78 to 1.0.79.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.78...1.0.79)

---
updated-dependencies:
- dependency-name: proc-macro2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [auto-commit] Update all Cargo lock files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2024-03-15 22:22:45 -05:00
Brooks 6548d92bb5 Moves a clippy attribute (#194) 2024-03-15 22:22:45 -05:00
steviez 1ffdca5773 Make --wait-for-supermajority require --expected-shred-version (#192)
In cluster restart scenarios, an important step is scanning the
Blockstore for blocks that occur after the chosen restart slot with an
incorrect shred version. This check ensures that any blocks that
occurred pre-cluster restart and after the chosen restart slot get
deleted. If a node skips this step, the node can encounter problems when
that block is created again, after the cluster has restarted.

This check only occurs if --wait-for-supermajority AND
--expected-shred-version are set; however, --expected-... is currently
optional when using --wait-...

Our restart instructions typically mention that one should specify
--expected-... as well, but we should just enforce it at the CLI level
to prevent mistakes / wasted time debuggging.
2024-03-15 22:22:45 -05:00
Brooks 87a5893d84 Removes redundant imports (#193) 2024-03-15 22:22:45 -05:00
Tyera 814181b07b Rpc: add support for minimum context slot to `getBlocks(WithLimit)` endpoints (#191)
* Support min_context_slot field in getBlocksWithLimit input

* Use min_context_slot in get_blocks_with_limit

* Support min_context_slot field in getBlocks input

* Use min_context_slot in get_blocks
2024-03-15 22:22:45 -05:00
Yihau Chen 8b927561dc Revert "build(deps): bump cc from 1.0.83 to 1.0.89 (#40)" (#174)
This reverts commit 7a8e29d4d5.
2024-03-15 22:22:45 -05:00
Yihau Chen 88ffa74180 ci: remove unused Github Actions (#124) 2024-03-15 22:22:45 -05:00
Greg Cusack d5c5f06ddb Remove `ThinClient` from `dos/` (#117)
* remove `ThinClient` from `dos/` and replace `ThinClient` with `TpuClient`

* remove test for valid_client_facing_addr since it is no longer used
2024-03-15 22:22:45 -05:00
Brooks 096a1f4e5c Removes holding storages in AccountsHashVerifier for fastboot (#120) 2024-03-15 22:22:45 -05:00
Brooks 27e51b3196 Removes atomic-ness from AccountStorageEntry `id` and `slot` fields (#119) 2024-03-15 22:22:45 -05:00
Lucas Steuernagel 799888efc8 Add tests for `svm/transaction_processor.rs` (#186) 2024-03-15 22:22:45 -05:00
Brooks cfe6868f63 Removes the storage recycler (#118) 2024-03-15 22:22:45 -05:00
Greg Cusack 4a80bb902e bump deprecated version numbers for `get_client` and `get_multi_client` (#184)
bump deprecated version numbers
2024-03-15 22:22:45 -05:00
behzad nouri 4d3546ad75 expands weighted-shuffle benchmarks (#179)
Adding separate benchmarks for WeightedShuffle::new and
WeightedShuffle::shuffle.
2024-03-15 22:22:45 -05:00
steviez 365922d814 Move AccountsDb replication arguments to deprecated list (#157)
These arguments are not read by anything, and they appear to correspond
to a proposed feature that is no longer in the codebase.
2024-03-15 22:22:45 -05:00
Tyera 4e63141e38 Version bump v2.0.0 (#121)
* Put solana-svm in alphabetical order

* Update version to 2.0.0.

---------

Co-authored-by: Will Hickey <will.hickey@solana.com>
2024-03-15 22:22:43 -05:00
Jeff Washington (jwash) ad42bebe57 remove dead code (#176) 2024-03-15 22:21:42 -05:00
Greg Cusack f5e13a1c9f deprecate `get_client` and `get_multi_client` (#177)
deprecate get_client and get_multi_client
2024-03-15 22:21:42 -05:00
Brooks 5611a73b0e Moves accounts benches into accounts-db crate (#164) 2024-03-15 22:21:42 -05:00
GHA: Update Upstream From Fork 11f44777e3 Remove agave references accidentially added by f944227dba 2024-03-15 22:21:27 -05:00
bji f219fbc8f0 Update maximum credits awarded per vote from 8 to 16 (#127)
This reduces the maximum penalty for voting after the grace period by
roughly 50%.  This new value was derived from looking at the effects
that TVC at max credits 8 would have for recent epochs (500+) and
noting that the effect was a bit extreme, up to and exceeding 10%
"bonus" for faster voters.  This change reduces that maximum bonus by
roughly half.

In addition, the TVC feature key has been changed.
2024-03-15 21:32:41 -05:00
GHA: Update Upstream From Fork e0203f22dc Revert "ci: rename script (#125)"
This reverts commit ed57e6aa10.
2024-03-11 08:17:30 -05:00
GHA: Update Upstream From Fork a8e2540a57 Revert "Use agave prefix in scripts for pre-installed binaries (#155)"
This reverts commit 3cba072274.
2024-03-11 08:17:09 -05:00
Dmitri Makarov 85ccadf35b SVM: Add doc comments, restrict visibility of some xfaces to crate (#136) 2024-03-09 13:28:08 -06:00
steviez 1fcef51714 Make ReplayStage create the parallel fork replay threadpool (#137)
ReplayStage owning the pool allows for subsequent work to configure
the size of the pool; configuring the size of the pool inside of the
lazy_static would have been a little messy
2024-03-09 13:28:08 -06:00
HaoranYi f8c5e15020 Move delta hash test function to dev-context-utils (#151)
move delta hash test function to dev-context-utils

Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-03-09 13:28:08 -06:00
Justin Starry 3cba072274 Use agave prefix in scripts for pre-installed binaries (#155) 2024-03-09 13:28:08 -06:00
dependabot[bot] d5ffeefb3d build(deps): bump cc from 1.0.83 to 1.0.89 (#40)
* build(deps): bump cc from 1.0.83 to 1.0.89

Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.0.83 to 1.0.89.
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.83...1.0.89)

---
updated-dependencies:
- dependency-name: cc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [auto-commit] Update all Cargo lock files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2024-03-09 13:28:08 -06:00
Lucas Steuernagel 2c55819e7b Gather recording booleans in a data structure (#134) 2024-03-09 13:28:08 -06:00
Jon C ce10dc1043 runtime: Move `From<AddressLookupError>` from sdk (#141)
sdk: Move `From<AddressLookupError>` into runtime
2024-03-09 13:28:08 -06:00
Yihau Chen ed57e6aa10 ci: rename script (#125) 2024-03-09 13:28:07 -06:00
Tao Zhu ca41b16e47 add precompile signature metrics to cost tracker (#133) 2024-03-09 13:28:07 -06:00
steviez 9decf2a320 blockstore: Remove unnecessary function and threadpool (#122)
In a previous change, we removed the threadpool used to fetch entries
in parallel in favor of combining all fetches into a single rocksdb
multi_get() call.

This change does the same thing, except for a threadpool that was used
to fetch entries when we needed them to purge the transaction status
and address signatures columns.
2024-03-09 13:28:07 -06:00
kirill lykov ca1af7b702 Add get_blocks and get_slot methods to bench-tps-client (#94)
* add get_block(s)/slot methods to BenchTpsClient

* Update Cargo.lock

* add commitment level for get_slot/blocks
2024-03-09 13:28:07 -06:00
Dmitri Makarov 264f4dfdd0 [SVM] Move RuntimeConfig to program-runtime (#96)
RuntimeConfig doesn't use anything SVM specific and logically belongs
in program runtime rather than SVM.  This change moves the definition
of RuntimeConfig struct from the SVM crate to program-runtime and
adjusts `use` statements accordingly.
2024-03-09 13:27:11 -06:00
behzad nouri 8da3f5bec4 adds api to obtain the parent node in the turbine retransmit tree (#115)
Following commits will use this api to check retransmitter's signature
on incoming shreds.
2024-03-09 13:26:34 -06:00
Lucas Steuernagel d7efade85a Add tests for `svm/transaction_processor.rs` (#112) 2024-03-09 13:26:34 -06:00
Tao Zhu e5ec7853c6 Combine builtin and BPF compute cost in cost model (#29)
* Combine builtin and BPF execution cost into programs_execution_cost since VM has started to consume CUs uniformly

* update tests

* apply suggestions from code review
2024-03-09 13:26:34 -06:00
Justin Starry c36b572c36 Add support for partial tx batch unlocking (#110)
* Add support for partial tx batch unlocking

* add assert

* fix build

* Add comments
2024-03-09 13:26:34 -06:00
Yueh-Hsuan Chiang 782591eb77 [TieredStorage] Deprecate the use of account-hash in HotStorage (#93)
#### Problem
TieredStorage stores account hash as an optional field inside its HotStorage.
However, the field isn't used and we have already decided to deprecate
the account hash.

#### Summary of Changes
Remove account-hash from the tiered-storage.

#### Test Plan
Existing tiered-storage tests.
Running validators w/ tiered-storage in mainnet-beta w/o storing account-hash.
2024-03-09 13:26:34 -06:00
Tyera a8d527b446 Prep Anchor downstream CI job for v2 bump (#123)
* Add new script to patch spl in anchor downstream

* Only specify major version for token-2022

* Add update for ahash

* Patch spl in anchor

* Remove dex and metadata features for now
2024-03-09 13:26:34 -06:00
Justin Starry 1ff68447d4 Refactor transaction account unlocking (#103)
refactor: unlock accounts
2024-03-09 13:26:34 -06:00