behzad nouri
8fb389fe8d
chains Merkle shreds in fail-entry-verification broadcast ( #35060 )
...
The commit migrates
turbine/src/broadcast_stage/fail_entry_verification_broadcast_run.rs
to use chained Merkle shreds variant.
2024-02-06 20:04:47 +00:00
behzad nouri
8d0ca9db78
chains Merkle shreds in broadcast fake shreds ( #35061 )
...
The commit migrates
turbine/src/broadcast_stage/broadcast_fake_shreds_run.rs
to use chained Merkle shreds variant.
2024-02-06 20:02:38 +00:00
Jeff Washington (jwash)
d52b1ac795
update rent epoch max test ( #35092 )
...
* update rent epoch max test
* invert diff
2024-02-06 13:45:51 -06:00
Pankaj Garg
10defb161f
SVM: Move TransactionErrorMetrics to SVM folder ( #35112 )
2024-02-06 11:15:48 -08:00
Ashwin Sekar
3e24b410fb
replay: votes made before restart are eligible for refresh ( #34737 )
...
* replay: votes made before restart are eligible for refresh
* pr feedback: rename to mark
* pr feedback: limit scope to non voting validators
2024-02-06 11:09:59 -08:00
Pankaj Garg
99760e519a
SVM: move `inner_instructions_list_from_instruction_trace` to SVM ( #35099 )
...
SVM: move inner_instructions_list_from_instruction_trace to SVM
2024-02-06 08:38:24 -08:00
Kirill Fomichev
adc9da5f12
cli: add transaction retry pool max size ( #35080 )
...
* cli: add transaction retry pool max size
* Update send-transaction-service/src/send_transaction_service.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* rename transaction_retry_pool_max_size
---------
Co-authored-by: Tyera <teulberg@gmail.com>
2024-02-06 01:31:14 -07:00
Tyera Eulberg
57bbd3363c
Revert "Populate partitioned-rewards PDA during calculation ( #34624 )"
...
This reverts commit 4385ed11b1
.
2024-02-05 19:54:19 -07:00
Tyera Eulberg
d7179e4fa0
Revert "Define epoch-rewards partition data program id ( #34862 )"
...
This reverts commit 8aa726bfdf
.
2024-02-05 19:54:19 -07:00
Tyera Eulberg
57634e4419
Revert "Fix epoch rewards partition-data program owner ( #34913 )"
...
This reverts commit 7ebe0bccd6
.
2024-02-05 19:54:19 -07:00
Tyera Eulberg
e76da4a8fe
Revert "Support json parsing of epoch-rewards partition data sysvar accounts ( #34914 )"
...
This reverts commit b9947bd327
.
2024-02-05 19:54:19 -07:00
Tyera Eulberg
f01f361f13
Revert "Add rpc support for partitioned rewards ( #34773 )"
...
This reverts commit 22500c23db
.
2024-02-05 19:54:19 -07:00
Andrew Fitzgerald
9dca15a5b7
Rename priority to compute_unit_price ( #35062 )
...
* rename several priorities to compute_unit_price
* TransactionPriorityDetails -> ComputeBudgetDetails
* prioritization_fee_cache: fix comment
* transaction_state: fix comments and variable names
* immutable_deserialized_packet: fix comment
2024-02-05 16:41:01 -08:00
Dmitri Makarov
ab30fb5f05
SVM: Move AccountOverrides from accounts-db to SVM ( #35091 )
2024-02-05 19:16:47 -05:00
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