Ashwin Sekar
0e4e81a44c
banking stage: remove spammy packet conversion metric ( #35014 )
2024-02-05 14:46:32 -08:00
Pankaj Garg
3cf5dd2afb
SVM: Move RuntimeConfig to svm folder ( #35085 )
2024-02-05 13:49:36 -08:00
Pankaj Garg
65701820f3
SVM: remove dependency on bank and bank_forks ( #35084 )
2024-02-05 11:48:42 -08:00
Yueh-Hsuan Chiang
785dd2132e
[TieredStorage] Enable hot-storage in TieredStorage::write_accounts() ( #35049 )
...
#### Problem
While the implementation of hot-storage reader and writer
are mostly done, it is not yet connected to TieredStorage.
#### Summary of Changes
This PR enables hot-storage in TieredStorage::write_accounts().
#### Test Plan
Completes the existing tests in TieredStorage to directly
write and read from a TieredStorage with the hot storage format.
2024-02-05 10:23:30 -08:00
drebaglioni
c3d1831b8e
Update SECURITY.md ( #35048 )
...
Removed language relating to previous payments method
2024-02-05 11:13:04 -07:00
HaoranYi
440c3bb156
Avoid account index entry Arc clone in shrinking ( #35010 )
...
* avoid account index entry Arc clone in shrink
* use scan to addref
* update code comments for scan fn
* expect
* warn
* update log message
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-02-05 16:47:00 +00:00
Pankaj Garg
116119cfd2
SVM: Move transaction processing code out of `bank.rs` ( #35075 )
...
SVM: Move transaction processing code out of bank.rs
2024-02-05 08:18:17 -08:00
Brooks
a16f982169
Removes redundant check on STORE_META_OVERHEAD ( #35069 )
2024-02-04 16:56:12 +00:00
Pankaj Garg
cb0f13ef07
SVM: Split transaction processing code into its own struct ( #35044 )
...
* Split transaction processing code into its own struct
* define and implement callback trait
2024-02-04 08:07:39 -08:00
Yueh-Hsuan Chiang
9935c2b5e7
[AppendVec] Use proper Vec initial size in append_accounts() ( #35047 )
...
#### Problem
append_accounts() only appends (len - skip) accounts.
However, AppendVec::append_accounts() reserves `len`
instead of `(len - skip)` for its vectors.
#### Summary of Changes
Use (len - skip) as the initial size of the Vectors.
2024-02-03 23:02:09 -08:00
Nick Frostbutter
919b306733
[docs] updated page metadata and minor fixes ( #35059 )
...
feat: updated metadata
2024-02-02 16:55:11 -06:00
Yueh-Hsuan Chiang
dd30175e55
[TieredStorage] TieredStorageReader:: and HotStorageReader:: accounts() ( #35031 )
...
#### Problem
HotStorageReader and TieredStorageReader haven't implemented
accounts() that is required by AcocuntsFile.
#### Summary of Changes
This PR implements accounts() for both HotStorageReader
and TieredStorageReader
#### Test Plan
Extend the existing test to cover accounts().
2024-02-02 11:18:52 -08:00
Pankaj Garg
bf95f65ce1
Fix: decayed_counter can overflow if shifted more than 63 ( #35054 )
2024-02-02 10:10:43 -08:00
Brooks
4b528e890c
Ensures STORE_META_OVERHEAD remains accurate ( #35053 )
2024-02-02 13:00:54 -05:00
Yueh-Hsuan Chiang
97d994ee6f
[TieredStorage] Use IndexOffset in TieredStorageMeta and get_account() ( #35046 )
...
#### Problem
TieredStorageMeta and TieredStorageReader::get_account API uses
u32 to represent IndexOffset. However, within the TieredStorage scope,
IndexOffset should be used, it is not until working with AccountsFile API
when u32 representation of offset is needed.
#### Summary of Changes
Have TieredStorageMeta and TieredStorageReader to use IndexOffset.
#### Test Plan
Existing unit-tests.
2024-02-02 09:53:13 -08:00
dependabot[bot]
9c595bca54
build(deps): bump libc from 0.2.152 to 0.2.153 ( #35032 )
...
* build(deps): bump libc from 0.2.152 to 0.2.153
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.152 to 0.2.153.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.152...0.2.153 )
---
updated-dependencies:
- dependency-name: libc
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-02-02 23:45:10 +08:00
Brooks
f62293918d
Moves the async deleter code to accounts-db ( #35040 )
2024-02-02 09:21:26 -05:00
Alexander Meißner
5dd9609aea
Fix - LoadedPrograms statistics ( #35026 )
...
Fixes hits, misses.
Adds reloads, lost_insertions.
Removes prunes_expired.
2024-02-02 13:35:36 +01:00
Jon C
3646291dc6
sdk: Do not derive AbiEnum on InstructionError for Solana builds ( #35038 )
2024-02-02 00:00:31 +01:00
Yueh-Hsuan Chiang
be9f17f053
[TieredStorage] Have HotStorageWriter::write_account() return Vec<StoredAccountInfo> ( #34929 )
...
#### Problem
To allow hot-storage to use HotStorageWriter::write_account() to
implement AccountsFile::append_accounts(), it is required to
provide a Vector of StoredAccountInfo to allow AccountsDB to
properly prepare the entry for each account.
#### Summary of Changes
This PR enables HotStorageWriter::write_account() to return
Vec<StoredAccountInfo>.
#### Test Plan
Extend existing tests for HotStorageWriter to verify the correctness
of the returned Vec<StoredAccountInfo>.
2024-02-01 13:33:42 -08:00
galactus
35f900b03b
Metrics prioritization fees ( #34653 )
...
* Adding metrics for prioritization fees min/max per thread
* Adding scheduled transaction prioritization fees to the metrics
* Changes after andrews comments
* fixing Taos comments
* Adding metrics to the new scheduler
* Fixing getting of min max for TransactionStateContainer
* Fix clippy CI Issue
* Changes after andrews comments about min/max for new scheduler
* Creating a new structure to store prio fee metrics
* Reporting with prio fee stats banking_stage_scheduler_counts
* merging prioritization stats into SchedulerCountMetrics
* Minor changes after andrews review
2024-02-01 15:06:45 -06:00
Brooks
daa2449ad4
Removes RwLock on AccountsDb::shrink_paths ( #35027 )
2024-02-01 09:35:34 -05:00
Brooks
0569304835
Replaces bare Arc::default() in CacheHashData::new() ( #35017 )
2024-01-31 10:52:59 -05:00
steviez
b3ea62fba3
ledger-tool: Change --snapshot-archive-path to --snapshots ( #35019 )
...
This change makes solana-ledger-tool match solana-validator CLI; the old
flag --snapshot-archive-path is retained as an argument alias and can
still be used for the sake of backwards compatibility.
2024-01-30 22:50:37 -04:00
Tao Zhu
0dcac3fe7c
Revert "Remove congestion multiplier from calculate fee ( #34865 )"
...
This reverts commit 73d3973c7c
.
2024-01-30 17:30:01 -06:00
Tao Zhu
df2ee120e9
Revert "separate priority fee and transaction fee from fee calculation ( #34757 )"
...
This reverts commit 5ecc47ec5a
.
2024-01-30 17:30:01 -06:00
Tao Zhu
15423928c1
Revert "refactor unused parameter ( #34970 )"
...
This reverts commit 083890928f
.
2024-01-30 17:30:01 -06:00
Pankaj Garg
c6c23405d6
Remove SVM dependency on Bank::should_collect_rent() ( #35011 )
2024-01-30 08:38:24 -08:00
dependabot[bot]
d5ab2fa1df
build(deps): bump serde_json from 1.0.111 to 1.0.113 ( #35000 )
...
* build(deps): bump serde_json from 1.0.111 to 1.0.113
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.111 to 1.0.113.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.111...v1.0.113 )
---
updated-dependencies:
- dependency-name: serde_json
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-01-30 16:30:10 +08:00
dependabot[bot]
6666660d4c
build(deps): bump hidapi from 2.5.0 to 2.5.1 ( #34998 )
...
Bumps [hidapi](https://github.com/ruabmbua/hidapi-rs ) from 2.5.0 to 2.5.1.
- [Commits](https://github.com/ruabmbua/hidapi-rs/commits/v2.5.1 )
---
updated-dependencies:
- dependency-name: hidapi
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-01-30 16:29:48 +08:00
dependabot[bot]
0f376254af
build(deps): bump chrono from 0.4.32 to 0.4.33 ( #34997 )
...
* build(deps): bump chrono from 0.4.32 to 0.4.33
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.32 to 0.4.33.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.32...v0.4.33 )
---
updated-dependencies:
- dependency-name: chrono
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-01-30 16:29:24 +08:00
dependabot[bot]
9ad6198d2d
build(deps): bump serde from 1.0.195 to 1.0.196 ( #34996 )
...
* build(deps): bump serde from 1.0.195 to 1.0.196
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.195 to 1.0.196.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.195...v1.0.196 )
---
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>
2024-01-30 16:28:59 +08:00
Brooks
c8cdd0087f
Removes pushing and pulling account hashes in gossip ( #34979 )
2024-01-29 17:19:55 -05:00
Yueh-Hsuan Chiang
16a2f1bd3d
[TS] Add get_account() and account_matches_owner() to TieredStorageReader ( #34968 )
...
#### Problem
TieredStorageReader is a wrapper enum that works for
both Hot and Cold storage readers, but its get_account()
and account_matches_owner() API are missing.
#### Summary of Changes
Add get_account() and account_matches_owner() to
TieredStorageReader.
#### Test Plan
hot.rs offers similar coverage for HotStorageReader.
2024-01-29 11:05:47 -08:00
HaoranYi
b1f8a89da5
Fix bank new_from_field for epoch reward status ( #34992 )
...
* fix bank new_from_field for epoch reward status
* fix bank serde test assert for epoch reward status
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-01-29 09:00:40 -06:00
Lijun Wang
8fde8d26c7
don't sign X.509 certs ( #34896 )
...
This get rid of 3rd party components rcgen in the path of private key access to make the code more secure.
2024-01-28 16:17:46 -08:00
Brooks
b9815da6cc
Fixes typo ( #34990 )
2024-01-28 17:32:09 -05:00
dependabot[bot]
52d3c021ef
build(deps): bump chrono from 0.4.31 to 0.4.32 ( #34898 )
...
* build(deps): bump chrono from 0.4.31 to 0.4.32
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.31 to 0.4.32.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.31...v0.4.32 )
---
updated-dependencies:
- dependency-name: chrono
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-01-28 13:02:29 +08:00
hana
c99427eb9e
solana-program: only decode prior_voters if needed ( #34972 )
2024-01-27 11:10:45 -08:00
Pankaj Garg
2455dc1a69
SVM: Move `TransactionAccountStateInfo` to svm and decouple from `bank` ( #34981 )
2024-01-27 11:10:09 -08:00
behzad nouri
79bbe4381a
adds chained_merkle_root to shredder arguments ( #34952 )
...
Working towards chaining Merkle root of erasure batches, the commit adds
chained_merkle_root to shredder arguments.
2024-01-27 15:04:31 +00:00
behzad nouri
d4fdcd940a
adds feature to enable chained Merkle shreds ( #34916 )
...
During a cluster upgrade when only half of the cluster can ingest the new shred
variant, sending shreds of the new variant can cause nodes to diverge.
The commit adds a feature to enable chained Merkle shreds explicitly.
2024-01-27 15:03:16 +00:00
Brooks
02062a6b6a
Removes unused AccountsHashFaultInjector ( #34977 )
2024-01-26 19:21:23 -05:00
Brooks
59c2f35609
Removes unused retain_max_n_elements() ( #34978 )
2024-01-26 18:34:47 -05:00
Brooks
e1260a9604
Removes unused parameters from AccountsHashVerifier::new() ( #34976 )
2024-01-26 21:52:05 +00:00
Pankaj Garg
0d117d420c
Remove BlockhashQueue dependency from SVM related code ( #34974 )
2024-01-26 13:46:44 -08:00
HaoranYi
e38848e519
Remove unused get_append_vec_id function ( #34949 )
...
remove unused get_append_vec_id fn
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-01-26 21:41:09 +00:00
HaoranYi
8a0c91d842
Skip creating reward partition account for `--partitioned-epoch-rewards-force-enable-single-slot` ( #34946 )
...
* skip creating reward partition account when we are testing agains mainnet
* Update runtime/src/bank.rs
Co-authored-by: Brooks <brooks@prumo.org>
* Update runtime/src/bank.rs
Co-authored-by: Brooks <brooks@prumo.org>
* refactor bool logic for partition reward single slot enable
* Update runtime/src/bank.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* move force_partition_rewards check into data account create fn
* share code
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
Co-authored-by: Brooks <brooks@prumo.org>
Co-authored-by: Tyera <teulberg@gmail.com>
2024-01-26 21:24:54 +00:00
Brooks
c656ca68b8
Stops pushing accounts hashes to gossip in AccountsHashVerifier ( #34971 )
2024-01-26 15:25:23 -05:00
Tao Zhu
083890928f
refactor unused parameter ( #34970 )
2024-01-26 12:28:44 -06:00