Jon Cinque
8e4a9a94ed
sdk: Add new version of `StakeState` to avoid breaking downstream users ( #32736 )
...
* sdk: Rename `StakeState` -> `StakeStateWithFlags`
* Add back `StakeFlags` with a deprecation warning
2023-08-09 00:05:40 +02:00
behzad nouri
ef318c23ae
bumps criterion to 0.5.1 ( #32760 )
...
Current version throws warning:
warning: the following packages contain code that will be rejected by
a future version of Rust: criterion v0.3.5
2023-08-08 14:33:15 +00:00
Jeff Washington (jwash)
7c1cf298aa
add active stats for pieces of hash calc ( #32750 )
2023-08-08 07:16:10 -07:00
Jeff Washington (jwash)
32cb381f69
remove some stats that are no longer kept ( #32751 )
...
* remove some stats that are no longer kept
* Update runtime/src/accounts_hash.rs
Co-authored-by: Brooks <brooks@prumo.org>
* reorder to remove drop
---------
Co-authored-by: Brooks <brooks@prumo.org>
2023-08-08 07:15:37 -07:00
Jeff Washington (jwash)
21b8b70bee
add metrics around purge_exact ( #32752 )
2023-08-08 07:15:21 -07:00
dependabot[bot]
e2843d3fd0
Bump tar from 0.4.39 to 0.4.40 ( #32759 )
...
* Bump tar from 0.4.39 to 0.4.40
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.39 to 0.4.40.
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.39...0.4.40 )
---
updated-dependencies:
- dependency-name: tar
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>
2023-08-08 12:28:23 +00:00
Ikko Eltociear Ashimine
626e7dcfae
docs: Fix typo in off-chain-message-signing.md ( #32758 )
...
specfied -> specified
2023-08-08 13:00:46 +02:00
behzad nouri
ee73a588ba
upgrades serial_test to 2.0.0 ( #32745 )
2023-08-08 03:39:08 +00:00
Tao Zhu
ef6af307a4
improve prioritization fee cache accuracy ( #32692 )
...
* improve prioritization cache accuracy
2023-08-07 19:27:28 -05:00
Yueh-Hsuan Chiang
bf6d0aba4c
TieredStorage struct (4/N) -- remove_on_drop ( #32603 )
...
#### Summary of Changes
This PR makes TieredStorage implement Drop which does the remove-on-drop
behavior that follows the AccountsFile convention.
2023-08-07 15:39:46 -07:00
behzad nouri
b7c2ad5b67
repurposes tvu_forwards socket for TVU over QUIC ( #32737 )
...
LegacyContactInfo.tvu_forwards is unused.
Repurposing the field for TVU over QUIC will avoid QUIC_PORT_OFFSET hack
in a backward compatible way.
2023-08-07 22:02:41 +00:00
Brooks
df31bc13db
Removes `set_no_remove_on_drop()` from AppendVec/AccountsFile ( #32742 )
2023-08-07 17:48:31 -04:00
Brooks
4894eb0333
Moves some accounts-db test-only code into a dev-context-only-utils feature ( #32748 )
2023-08-07 17:28:15 -04:00
behzad nouri
0511753276
moves DATA_PLANE_FANOUT to turbine ( #32744 )
2023-08-07 20:53:49 +00:00
Ashwin Sekar
fa3506631a
stake: deprecate on chain warmup/cooldown rate and config ( #32723 )
...
* stake: deprecate on chain warmup/cooldown rate and config
* Pr feedback: Deprecate since 1.16.7
Co-authored-by: Jon Cinque <me@jonc.dev>
---------
Co-authored-by: Jon Cinque <me@jonc.dev>
2023-08-07 13:23:24 -07:00
Greg Cusack
5c86f89bc7
Add from field for message tracking ( #32725 )
...
* we only want to report received message signatures on PUSH requests, not PULL requests
* woops accidently had it has LocalMessage not PushMessage
* switch from match to if let statement
* convert if let to matches macro
* add in from field in PushMessage for message tracking
* update with cargo fmt
* remove display for gossip route and add lifetime param to pubkey reference in gossiproute enum
* forgot to run fmt
2023-08-07 11:40:18 -07:00
behzad nouri
b9a2030537
uses atomics for read-only accounts cache entry index ( #32518 )
...
Using atomics for entry indices allows load function to use self.cache.get
instead of get_mut which reduces lock contention on the respective
dash-map shard.
2023-08-07 17:47:09 +00:00
Brooks
c2dec254c8
Removes `remove_on_drop` field from AppendVec ( #32741 )
2023-08-07 13:25:07 -04:00
Pankaj Garg
511cf28be8
Move `serde-snapshot dependent accounts-db tests ( #32671 )
...
Move serde-snapshot dependent accounts-db tests
2023-08-07 09:35:41 -07:00
Brooks
6ce647a3e0
Do not drop AppendVec in store-tool ( #32739 )
2023-08-07 12:15:01 -04:00
Tao Zhu
6eea38d803
Remove unnecessary ref of arc ( #32729 )
...
* remove unnecessary ref of arc
2023-08-07 09:33:57 -05:00
dependabot[bot]
2444e09183
Bump tempfile from 3.7.0 to 3.7.1 ( #32734 )
...
* Bump tempfile from 3.7.0 to 3.7.1
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.7.0 to 3.7.1.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.0...v3.7.1 )
---
updated-dependencies:
- dependency-name: tempfile
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>
2023-08-07 12:44:11 +00:00
dependabot[bot]
f650261f63
Bump cc from 1.0.81 to 1.0.82 ( #32733 )
...
* Bump cc from 1.0.81 to 1.0.82
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.81...1.0.82 )
---
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>
2023-08-07 12:43:30 +00:00
dependabot[bot]
d8849cdf7e
Bump regex from 1.9.1 to 1.9.3 ( #32732 )
...
* Bump regex from 1.9.1 to 1.9.3
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.1 to 1.9.3.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.1...1.9.3 )
---
updated-dependencies:
- dependency-name: regex
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>
2023-08-07 12:42:56 +00:00
dependabot[bot]
3912afb4c1
Bump openssl from 0.10.55 to 0.10.56 ( #32731 )
...
* Bump openssl from 0.10.55 to 0.10.56
Bumps [openssl](https://github.com/sfackler/rust-openssl ) from 0.10.55 to 0.10.56.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.55...openssl-v0.10.56 )
---
updated-dependencies:
- dependency-name: openssl
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>
2023-08-07 12:41:40 +00:00
dependabot[bot]
0171114e9a
Bump serde from 1.0.181 to 1.0.183 ( #32730 )
...
* Bump serde from 1.0.181 to 1.0.183
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.181 to 1.0.183.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.183 )
---
updated-dependencies:
- dependency-name: serde
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>
2023-08-07 12:40:56 +00:00
Greg Cusack
849525735f
report received message signatures only on PUSH requests ( #32708 )
...
* we only want to report received message signatures on PUSH requests, not PULL requests
* woops accidently had it has LocalMessage not PushMessage
* switch from match to if let statement
* convert if let to matches macro
2023-08-06 20:36:23 -07:00
HaoranYi
dbe6d0353f
Allow pending changes for `test-checks.sh` for local build ( #32728 )
...
* Add `local` options for ci test-check script
* check env instead
* remove usage()
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-08-06 09:29:12 -05:00
behzad nouri
207820879b
rolls out merkle shreds to ~50% of mainnet slots ( #32678 )
2023-08-04 20:33:08 +00:00
Yueh-Hsuan Chiang
a5bde0a79c
TieredStorage struct (3/N) -- new_readonly and reader structs ( #32579 )
...
#### Summary of Changes
This PR implements TieredStorage::new_readonly() and introduces
TieredStorageReader and HotStorageReader.
#### Test Plan
Updated the existing unit test.
2023-08-04 12:18:38 -07:00
HaoranYi
533f42dae6
remove type cast in scan metric report ( #32704 )
...
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-08-04 13:03:32 -05:00
steviez
226d7d986b
Simplify root slot lookup from BankForks ( #32717 )
...
No need to get an Arc<Bank> when we want the root slot from BankForks;
can just use BankForks::root().
2023-08-04 12:03:22 -06:00
Brooks
04e25ff3ce
Adds doc comments for Bank fns that get accounts/snapshot hashes ( #32716 )
2023-08-04 13:56:15 -04:00
Jeff Washington (jwash)
ca7a7ad2f3
add some doc comments identified in audit ( #32709 )
...
* add some doc comments identified in audit
* Update runtime/src/bank.rs
Co-authored-by: Brooks <brooks@prumo.org>
* Update runtime/src/accounts_db.rs
Co-authored-by: Brooks <brooks@prumo.org>
* Update runtime/src/accounts_db.rs
Co-authored-by: Brooks <brooks@prumo.org>
---------
Co-authored-by: Brooks <brooks@prumo.org>
2023-08-04 10:52:01 -07:00
Alexander Meißner
a310dd776c
Fix - Uses `std::mem::transmute` and `std::ptr::write` in unsafe code in append_vec.rs ( #32711 )
...
Uses std::mem::transmute and std::ptr::write in unsafe code in append_vec.rs
2023-08-04 17:18:13 +02:00
steviez
1844c423a7
Add required cluster argument to solana feature activate subcommand ( #32693 )
...
This extra argument serves as an extra guardrail to ensure that the
feature key holder is activating the feature on the intended cluster,
and not solely using a default or config-file stored RPC url to
determine which cluster the feature will be activated on.
2023-08-04 08:28:01 -06:00
dependabot[bot]
7ca45ae159
Bump serde from 1.0.180 to 1.0.181 ( #32710 )
...
* Bump serde from 1.0.180 to 1.0.181
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.180 to 1.0.181.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181 )
---
updated-dependencies:
- dependency-name: serde
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>
2023-08-04 12:36:46 +00:00
behzad nouri
b0a4669336
demotes unknown_epoch_staked_nodes metric to debug ( #32701 )
2023-08-04 12:33:08 +00:00
steviez
20fc3a5ded
Remove improper &Arc<Blockstore> instances ( #32698 )
...
Update to either &Blockstore if the function just needs a ref, or
Arc<Blockstore> if the function needs to hang onto a copy.
2023-08-03 15:10:25 -06:00
steviez
5edd032c79
Remove unnecessary clone ( #32707 )
2023-08-03 13:54:43 -06:00
HaoranYi
8076b0fd4f
fix typo ( #32706 )
...
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-08-03 12:59:00 -05:00
Jeff Washington (jwash)
f5c8bb789a
remove unused bank creation/freezing progress ( #32699 )
2023-08-03 10:12:44 -07:00
Alexander Meißner
33c33f5f79
Fix - Adds missing feature pubkeys to the `FEATURES_AFFECTING_RBPF` list ( #32703 )
...
Adds missing feature pubkeys to the FEATURES_AFFECTING_RBPF list.
2023-08-03 17:45:30 +02:00
Alexander Meißner
b5a80a72f0
Fix - Adds missing "Executable account not owned by the BPF loader" error to `remove_bpf_loader_incorrect_program_id` ( #32695 )
...
Adds missing "Executable account not owned by the BPF loader" error.
2023-08-03 15:26:02 +02:00
dependabot[bot]
2225aecfa9
Bump cc from 1.0.80 to 1.0.81 ( #32691 )
...
* Bump cc from 1.0.80 to 1.0.81
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.80 to 1.0.81.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.80...1.0.81 )
---
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>
2023-08-03 15:42:15 +08:00
Lijun Wang
fefc03c859
Update quinn-proto to 0.10.2 ( #32694 )
2023-08-02 17:12:33 -07:00
behzad nouri
349f5e0846
read-locks Turbine QUIC connection cache for lookups ( #32687 )
...
Frequently accessed remote addresses are cached, making a shared-lock
sufficient which would reduce lock contention for the more common
cache-hit lookups.
2023-08-02 21:54:45 +00:00
Jon Cinque
8c14886891
sdk: Limited Borsh 0.9 support (Pubkey and helpers) ( #32511 )
...
* sdk: Implement Borsh 0.9 traits on Pubkey
* Alphabetize cargo.toml
* Add backwards-compatible borsh file
* Add borsh0_10.rs for more clarity
* Deprecate `borsh` utils, use borsh0_10 everywhere
* Mark borsh 0.9 helpers as deprecated
* Add macros for deriving helper impls
* Add borsh 0.9 tests
* Refactor tests into macro
2023-08-02 23:15:24 +02:00
dependabot[bot]
1552a07f5b
Bump indicatif from 0.17.5 to 0.17.6 ( #32690 )
...
* Bump indicatif from 0.17.5 to 0.17.6
Bumps [indicatif](https://github.com/console-rs/indicatif ) from 0.17.5 to 0.17.6.
- [Release notes](https://github.com/console-rs/indicatif/releases )
- [Commits](https://github.com/console-rs/indicatif/commits )
---
updated-dependencies:
- dependency-name: indicatif
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>
2023-08-02 18:11:20 +00:00
behzad nouri
4e4b0a361e
uses RwLock instead of Mutex for cache entries in ClusterNodesCache ( #32686 )
...
For as long as cache entries have not expired yet, a shared lock is
enough and would avoid lock contention.
2023-08-02 18:08:18 +00:00