Ashwin Sekar
07955e79ad
replay: gracefully exit if tower load fails ( #35269 )
2024-02-21 18:51:30 -08:00
nathan haim
60ccdb3fb4
cli: program set-upgrade-authority sign-only ( #35203 )
...
* cli: program set-upgrade-authority
Add --sign-only flag
* Apply suggestions from code review
This fixes nits.
It modifies tests: it will sign offline with `newAuthority` keypair instead of fee payer. Then it reuses the signature in the next command.
Co-authored-by: Jon C <me@jonc.dev>
* cli/tests/program: fix tests
* cli/src/program: delete unsed import
* fix to pass ci cargo-clippy-nightly
---------
Co-authored-by: Jon C <me@jonc.dev>
2024-02-22 02:07:00 +01:00
Ryo Onodera
024d6ecc4f
Add --unified-scheduler-handler-threads ( #35195 )
...
* Add --unified-scheduler-handler-threads
* Adjust value name
* Warn if the flag was ignored
* Tweak message a bit
2024-02-22 09:05:17 +09:00
steviez
537c3d8e2c
Format the string literals in /validator directory ( #35261 )
...
There are lots of string literals in the /validator directory,
including many for CLI help and error messages. Any string literals
that exceed 100 characters prevent rustfmt from running properly.
This change temporarily set format_string = true in rustfmt.toml, and
then ran the linter on the validator directory. This was followed up
by manually tweaking several strings that were already well crafted
for readability (and within the 100 character limit)
2024-02-21 16:12:23 -06:00
DimAn
531793b4be
validator: ignore too old tower error ( #35229 )
...
* validator: ignore too old tower error
* Update core/src/replay_stage.rs
Co-authored-by: Ashwin Sekar <ashwin@solana.com>
* remove redundant references
---------
Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2024-02-21 13:23:23 -05:00
Lucas Steuernagel
a97f26e2a3
Build `transfer-hook` for downstream project ( #35245 )
...
* Build transfer hook for downstream project
* Add transfer hook example to programs list
2024-02-21 14:21:12 -03:00
Brooks
db2071a225
Removes get_account_read_entry_with_lock() ( #35240 )
2024-02-21 11:25:38 -05:00
steviez
4905076fb6
Remove channel that sends roots to BlockstoreCleanupService ( #35211 )
...
Currently, ReplayStage sends new roots to BlockstoreCleanupService, and
BlockstoreCleanupService decides when to clean based on advancement of
the latest root. This is totally unnecessary as the latest root is
cached by the Blockstore, and this value can simply be fetched.
This change removes the channel completely, and instead just fetches
the latest root from Blockstore directly. Moreso, some logic is added
to check the latest root less frequently, based on the set purge
interval.
All in all, we went from sending > 100 slots/min across a crossbeam
channel to reading an atomic roughly 3 times/min, while also removing
the need for an additional thread that read from the channel.
2024-02-21 10:16:16 -06:00
steviez
5c04a9731c
Obtain BankForks read lock once to get ancestors and descendants ( #35273 )
...
No need to get the read lock twice; instead, hold it and get both items
2024-02-21 10:07:57 -06:00
Yihau Chen
d223a43096
ci: update anchor downstream project ( #35274 )
...
* Update build downstream projects script (#35262 )
* fix patch-crates.sh doesn't pass the real variables
* fix downstream project anchor doesn't be triggered correctly
---------
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
2024-02-21 22:30:55 +08:00
dependabot[bot]
14453eb1b0
build(deps): bump serde_json from 1.0.113 to 1.0.114 ( #35250 )
...
* build(deps): bump serde_json from 1.0.113 to 1.0.114
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.113 to 1.0.114.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.113...v1.0.114 )
---
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-02-21 15:46:55 +08:00
dependabot[bot]
8233964e39
build(deps): bump syn from 2.0.49 to 2.0.50 ( #35249 )
...
* build(deps): bump syn from 2.0.49 to 2.0.50
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.49 to 2.0.50.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.49...2.0.50 )
---
updated-dependencies:
- dependency-name: syn
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-21 15:46:40 +08:00
dependabot[bot]
770da48178
build(deps): bump serde from 1.0.196 to 1.0.197 ( #35248 )
...
* build(deps): bump serde from 1.0.196 to 1.0.197
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.196 to 1.0.197.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.196...v1.0.197 )
---
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-02-21 15:45:52 +08:00
dependabot[bot]
97fa7b1995
build(deps): bump ahash from 0.8.8 to 0.8.9 ( #35247 )
...
* build(deps): bump ahash from 0.8.8 to 0.8.9
Bumps [ahash](https://github.com/tkaitchuck/ahash ) from 0.8.8 to 0.8.9.
- [Release notes](https://github.com/tkaitchuck/ahash/releases )
- [Commits](https://github.com/tkaitchuck/ahash/compare/v0.8.8...v0.8.9 )
---
updated-dependencies:
- dependency-name: ahash
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-21 15:45:17 +08:00
steviez
86b5f3cde7
Revert "Update build downstream projects script ( #35262 )" ( #35272 )
...
This reverts commit 4022434576
.
2024-02-20 23:33:04 -06:00
Andrew Fitzgerald
cd4cf814fc
Scheduler: Separate scheduler metrics module ( #35216 )
2024-02-20 19:39:00 -08:00
Brooks
6d15487183
rpc: Parse largest token accounts after sorting & truncating ( #35264 )
2024-02-20 19:29:14 -05:00
Ashwin Sekar
b0134ab04d
validator: include waited_for_supermajority in startup metric ( #35137 )
2024-02-20 16:13:57 -08:00
Brooks
f122e99c4e
rpc: Faster sorting for get_token_largest_accounts() ( #35263 )
2024-02-20 17:55:45 -05:00
HaoranYi
141048ee74
update comments for is_builtin ( #35258 )
...
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-02-20 16:45:38 -06:00
Lucas Steuernagel
4022434576
Update build downstream projects script ( #35262 )
2024-02-20 18:21:16 -03:00
Dmitri Makarov
0acee67891
SVM: move transaction_results from accounts-db to SVM ( #35183 )
...
SVM: Remove accounts-db deps in accounts_loader tests
2024-02-20 12:54:56 -08:00
steviez
a1c39a3c22
List the default value for `--accounts` in CLI help ( #35254 )
2024-02-20 13:12:41 -06:00
Brooks
d88b7d95b1
Replaces ReadAccountMapEntry in slots_by_pubkey() ( #35241 )
2024-02-20 13:53:02 -05:00
Brooks
915faaba1c
Replaces ReadAccountMapEntry in snapshot minimizer ( #35237 )
2024-02-20 13:52:29 -05:00
Brooks
0b5cc03aa3
Replaces ReadAccountMapEntry in ancient append vecs ( #35238 )
2024-02-20 13:52:11 -05:00
Brooks
ce72c22b3a
Replaces ReadAccountMapEntry in accounts index ( #35239 )
2024-02-20 13:51:54 -05:00
Brooks
e656e46b24
Makes help's default for `--accounts-index-path` consistent ( #35255 )
2024-02-20 18:32:06 +00:00
Ashwin Sekar
befe8b9d98
replay: reload tower if set-identity during startup ( #35173 )
...
* replay: reload tower if set-identity during startup
* pr feedback: add unit tests
* pr feedback: use tower.node_pubkey, more descriptive names
2024-02-20 09:30:46 -08:00
Pankaj Garg
d48f277091
SVM: Remove accounts-db deps in accounts_loader tests ( #35223 )
2024-02-20 08:09:27 -08:00
behzad nouri
d7ae65fc46
removes feature-gated code revising turbine epoch stakes for shreds propagation ( #35226 )
2024-02-20 16:04:32 +00:00
Brooks
012f588482
Removes copying owner when serializing Account ( #35118 )
...
* Removes copying owner when serializing Account
* Provide generic AbiExample impls for &T and &[T]
---------
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2024-02-20 10:16:46 -05:00
Brooks
13f232436a
Renames BankSnapshotType -> BankSnapshotKind ( #35246 )
2024-02-20 07:09:29 -05:00
Will Hickey
30adda4a71
Update version to 1.19.0 ( #35168 )
2024-02-19 15:43:58 -05:00
omahs
d87e7bc8e5
Fix typos ( #35234 )
...
* fix typos
* fix typo
* fix typos
* fix typo
2024-02-19 15:51:13 +00:00
Brooks
2ec136a1ea
Adds get_and_then() & family to AccountsIndex ( #35218 )
2024-02-19 10:22:00 -05:00
HaoranYi
ebf60359f4
clean up dev-context-only attribute ( #35201 )
...
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-02-19 07:56:27 -06:00
dependabot[bot]
6810068e11
build(deps): bump serde_yaml from 0.9.31 to 0.9.32 ( #35231 )
...
* build(deps): bump serde_yaml from 0.9.31 to 0.9.32
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.9.31 to 0.9.32.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.31...0.9.32 )
---
updated-dependencies:
- dependency-name: serde_yaml
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-19 21:47:43 +08:00
dependabot[bot]
8397c5cd69
build(deps): bump semver from 1.0.21 to 1.0.22 ( #35232 )
...
* build(deps): bump semver from 1.0.21 to 1.0.22
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.21 to 1.0.22.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.21...1.0.22 )
---
updated-dependencies:
- dependency-name: semver
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-19 21:47:08 +08:00
dependabot[bot]
7f75cc3c3d
build(deps): bump anyhow from 1.0.79 to 1.0.80 ( #35230 )
...
* build(deps): bump anyhow from 1.0.79 to 1.0.80
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.79 to 1.0.80.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.79...1.0.80 )
---
updated-dependencies:
- dependency-name: anyhow
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-19 21:46:42 +08:00
dependabot[bot]
4b65cc8eef
build(deps): bump syn from 2.0.48 to 2.0.49 ( #35212 )
...
* build(deps): bump syn from 2.0.48 to 2.0.49
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.48 to 2.0.49.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.48...2.0.49 )
---
updated-dependencies:
- dependency-name: syn
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-19 14:26:43 +08:00
Yueh-Hsuan Chiang
69345899f3
[TieredStorage] Make TieredStorage::write_accounts() thread-safe ( #35143 )
...
#### Problem
While accounts-db might not invoke appends_account twice
for the same AccountsFile, TieredStorage::write_accounts()
itself isn't thread-safe, and it depends on the above accounts-db
assumption.
#### Summary of Changes
This PR makes TieredStorage::write_accounts() thread-safe.
So only the first thread that successfully updates the already_written
flag can proceed and write the input accounts. All subsequent
calls to write_accounts() will be a no-op and return AttemptToUpdateReadOnly
Error.
2024-02-17 16:10:58 -08:00
sakridge
e4064023bf
Set COPYFILE_DISABLE for mac os so it doesn't generate ._ files ( #35213 )
2024-02-16 21:58:06 +01:00
Outrider
6fc8a6135d
Update README.md ( #35202 )
...
* Update README.md
grammar fixed
* Update docs/README.md
---------
Co-authored-by: Tyera <teulberg@gmail.com>
2024-02-16 13:19:14 -07:00
Joe C
78e187f220
bpf-loader-upgradeable: export `get_program_data_address` helper ( #35131 )
2024-02-16 21:00:50 +01:00
Andrew Fitzgerald
2a9ed3ee92
Remove ability to submit metrics with no fields ( #35133 )
2024-02-16 11:10:15 -08:00
Sergey Timoshin
d268139a0e
fix: correct typo in alt_bn128 function names. ( #35210 )
...
The typo in the function names convert_edianness_64 and convert_edianness_128 has been corrected to convert_endianness_64 and convert_endianness_128 respectively.
2024-02-16 19:59:15 +01:00
Tyera
9a69e3aa7a
ledger-tool: add warn log if capitalization changes during create-snapshot ( #35155 )
...
* Add warn log if capitalization changes during create-snapshot
* Add enable-capitalization-change flag
* Print capitalization message at end
2024-02-16 11:33:15 -07:00
sakridge
e21251090f
Remove spammy banking-stage retryable tx metric which is not needed ( #35207 )
...
Already covered by other metrics like the filtered retryable and the
number filtered.
2024-02-16 18:29:42 +01:00
Brooks
c5aaca43ab
Bring up to date the concurrent accounts benches ( #34815 )
2024-02-15 14:40:08 -05:00