Commit Graph

24950 Commits

Author SHA1 Message Date
steviez 8fa0e5c603
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-11 13:11:43 -05:00
Tyera 53e7b9ac47
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-11 12:11:22 -06:00
Jeff Washington (jwash) 158c4e05d5
remove dead code (#176) 2024-03-11 12:21:51 -05:00
Greg Cusack 00c984fe4d
deprecate `get_client` and `get_multi_client` (#177)
deprecate get_client and get_multi_client
2024-03-11 13:13:56 -04:00
Brooks 0e12172ddd
Moves accounts benches into accounts-db crate (#164) 2024-03-11 11:34:08 -04:00
Yihau Chen 3863bb1bdf
ci: fix Windows gh release pipeline (#165) 2024-03-11 12:29:24 +08:00
Dmitri Makarov d88050cda3
SVM: Add doc comments, restrict visibility of some xfaces to crate (#136) 2024-03-08 14:04:07 -05:00
steviez bf0a3684eb
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-08 12:52:35 -06:00
HaoranYi 1ac523c121
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-08 12:14:40 -06:00
Justin Starry 68be105870
Use agave prefix in scripts for pre-installed binaries (#155) 2024-03-08 17:02:21 +00:00
dependabot[bot] 7a8e29d4d5
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 00:59:43 +08:00
Lucas Steuernagel e027a8bd63
Gather recording booleans in a data structure (#134) 2024-03-08 09:28:04 -03:00
Jon C 377e1f9112
runtime: Move `From<AddressLookupError>` from sdk (#141)
sdk: Move `From<AddressLookupError>` into runtime
2024-03-08 11:02:33 +01:00
Yihau Chen c0239c8eff
ci: rename script (#125) 2024-03-08 10:48:39 +08:00
Tao Zhu 9770cd9083
add precompile signature metrics to cost tracker (#133) 2024-03-08 00:48:35 +00:00
steviez 26692e6664
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-07 16:06:31 -06:00
kirill lykov c6bd388346
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-07 21:51:44 +01:00
bji 940bd30ac9
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-07 19:52:22 +00:00
Dmitri Makarov ba43f74dcf
[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-07 10:16:16 -08:00
behzad nouri 42e8309c34
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-07 17:56:40 +00:00
Lucas Steuernagel 85cfe23b46
Add tests for `svm/transaction_processor.rs` (#112) 2024-03-07 12:26:31 -03:00
Tao Zhu 8f3f06cc7f
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-07 09:23:49 -06:00
Justin Starry adefcbbb43
Add support for partial tx batch unlocking (#110)
* Add support for partial tx batch unlocking

* add assert

* fix build

* Add comments
2024-03-07 04:06:52 +00:00
Yueh-Hsuan Chiang 0bf9ec861a
[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-06 18:51:50 -08:00
Tyera f968532d7f
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-06 19:31:07 -07:00
Justin Starry 9cc55349f7
Refactor transaction account unlocking (#103)
refactor: unlock accounts
2024-03-07 09:52:23 +08:00
steviez 8887cd19a1
Name previously unnamed thread pool threads (#104)
Several rayon and tokio threadpools did not have names; give them names
to make tracking them in debug tools easier
2024-03-06 17:03:02 -06:00
Brennan 184b31c6b7
fix typo (#57) 2024-03-06 14:03:25 -08:00
steviez b38ea4145e
Use tokio directly instead of jsonrpc_server_utils's re-export (#116) 2024-03-06 14:49:32 -06:00
Tao Zhu c1613517bf
assert simple vote tx const cost (#100)
* assert simple vote tx const cost
2024-03-06 11:08:49 -06:00
Jon C b6f6fdbc9a
frozen-abi: Remove proc_macro_hygiene featurization (#109) 2024-03-06 15:32:05 +01:00
Tyera 3cf48347a9
Cli: improve vote-account vote-authority display (#95)
* Simplify vote-authority display

* Add handling for new vote authority

* Add proper None handling, because unit test (shouldn't happen IRL, though)

* Unwrap->expect
2024-03-06 07:23:32 +00:00
steviez 1110fc93d7
Give SigVerify and ShredFetch threads unique names (#98)
- solTvuFetchPmod ==> solTvuPktMod + solTvuRepPktMod
- solSigVerifier ==> solSigVerTpu + solSigVerTpuVot
2024-03-05 22:02:04 -06:00
steviez ce34f3f014
Rename and uniquify QUIC thread names (#28)
When viewing in various tools such as gdb and perf, it is not easy to
distinguish which threads are serving which function (TPU or TPU FWD)
2024-03-05 12:09:17 -06:00
Brooks 1e133bc067
Increases account hash's stack buffer to hold 200 bytes of data (#56) 2024-03-05 12:02:47 -05:00
Jon C b78c0703ff
windows: Use vcpkg for openssl dep (#73) 2024-03-05 12:28:12 +01:00
Tyera 661de5bb76
Rpc: deprecate `getStakeActivation` and make inactive_stake consistent (#69)
* Make inactive_stake consistent

* Add rpc_deprecated_v1_18 module

* Move get_stake_activation to deprecated list

* Fix typo
2024-03-04 19:21:30 -07:00
Ashwin Sekar 6263537bf0
blockstore_purge: fix inspect -> inspect_err (#66) 2024-03-05 01:16:31 +00:00
Brooks 93f5b514fa
Adds StartingSnapshotStorages to AccountsHashVerifier (#58) 2024-03-04 16:32:51 -05:00
Brennan f5912104d0
update mio to 0.8.11 (#60) 2024-03-04 13:17:34 -08:00
Brooks 570d1a9197
Adds a bench for hash_account() (#47) 2024-03-04 13:59:35 -05:00
Yihau Chen 3f9a7a52ea [anza migration] rename crates (#10)
* rename geyser-plugin-interface

* rename cargo registry

* rename watchtower

* rename ledger tool

* rename validator

* rename install

* rename geyser plugin interface when patch
2024-03-03 12:31:24 +08:00
Yihau Chen 91e3dd2250 [anza migration] ci: removed unused s3 upload in Windows build (#9)
ci: removed unused s3 upload in Windows build
2024-03-03 12:31:24 +08:00
Yihau Chen 58e9a19f11 [anza migration] ci: fix path (#8)
* ci: fix windows build

* ci: publish sdk docker image with the new name

* update automerge status
2024-03-03 12:31:24 +08:00
Yihau Chen b0022d73ea [anza migration] ci (#5)
* Update README.md

* ci: update CodeCov report link

* ci: update github pr link

* ci: rename secondary pipeline

* replace org name in .mergify

* update channel info link

* update dependabot pr link

* use anza docker image

* delete travis

---------

Co-authored-by: Will Hickey <will.hickey@solana.com>
2024-03-03 12:31:24 +08:00
Yihau Chen 9355518424 [anza migration] replace binaries backend (#6)
* ci: add upload-gcs-artifact

* ci: publish release binaries to GCS

* ci: redirect github repo to anza-xyz

* ci: publish windows binaries to GCS

* replace release.solana.com with release.anza.xyz

* use a explicit name for credential
2024-03-03 12:31:24 +08:00
Ashwin Sekar cc4072bce8
blockstore: atomize slot clearing, relax parent slot meta check (#35124)
* blockstore: atomize slot clearing, relax parent slot meta check

clear_unconfirmed_slot can leave blockstore in an irrecoverable state
if it panics in the middle. write batch this function, so that any
errors can be recovered after restart.

additionally relax the constraint that the parent slot meta must exist,
as it could have been cleaned up if outdated.

* pr feedback: use PurgeType, don't pass slot_meta

* pr feedback: add unit test

* pr feedback: refactor into separate function

* pr feedback: add special columns to helper, err msg, comments

* pr feedback: reword comments and write batch error message

* pr feedback: bubble write_batch error to caller

* pr feedback: reword comments

Co-authored-by: steviez <stevecz@umich.edu>

---------

Co-authored-by: steviez <stevecz@umich.edu>
2024-03-02 23:23:55 -05:00
Alexander Meißner ccc6a6bf6f
Fix - `test_feature_activation_loaded_programs_recompilation_phase()` (#35299)
* Fixes test_feature_activation_loaded_programs_recompilation_phase() to trigger the recompilation phase before the epoch boundary.

* Adds a direct check of the cached entries around recompilation.
2024-03-02 06:55:53 -08:00
Lucas Steuernagel bd93285025
Proposal: Use SanitizedMessage when possible in `svm/account_loader.rs` (#35390) 2024-03-02 06:12:24 -03:00
dependabot[bot] f31ec1f2d6
build(deps): bump indexmap from 2.2.3 to 2.2.5 (#35389)
* build(deps): bump indexmap from 2.2.3 to 2.2.5

Bumps [indexmap](https://github.com/indexmap-rs/indexmap) from 2.2.3 to 2.2.5.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.2.3...2.2.5)

---
updated-dependencies:
- dependency-name: indexmap
  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-02 13:27:37 +08:00