Commit Graph

24561 Commits

Author SHA1 Message Date
dependabot[bot] b3ac7c7ae5
build(deps): bump smallvec from 1.12.0 to 1.13.1 (#34872)
* build(deps): bump smallvec from 1.12.0 to 1.13.1

Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.12.0...v1.13.1)

---
updated-dependencies:
- dependency-name: smallvec
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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-23 16:26:57 +08:00
dependabot[bot] ac1f8ca5d6
build(deps): bump regex from 1.10.2 to 1.10.3 (#34871)
* build(deps): bump regex from 1.10.2 to 1.10.3

Bumps [regex](https://github.com/rust-lang/regex) from 1.10.2 to 1.10.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.10.2...1.10.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>
2024-01-23 16:26:11 +08:00
dependabot[bot] 00b037fc25
build(deps): bump openssl from 0.10.62 to 0.10.63 (#34874)
* build(deps): bump openssl from 0.10.62 to 0.10.63

Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.62 to 0.10.63.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.62...openssl-v0.10.63)

---
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>
2024-01-23 16:25:16 +08:00
Tyera 8aa726bfdf
Define epoch-rewards partition data program id (#34862)
* Create new program id for epoch-rewards partition data PDAs

* Remove misleading repr attribute

* Remove storage of HasherKind

* Split up seeds
2024-01-22 19:14:29 -07:00
steviez 9122193e17
blockstore: Make is_orphan() a method of SlotMeta (#34889)
The old function's only input is a SlotMeta, so makes sense to move
it a member function of SlotMeta
2024-01-22 19:14:51 -06:00
Brooks 098076f5ca
Uses accounts run and snapshot dir constants (#34879) 2024-01-22 19:47:58 -05:00
Joe C 9caf9e8f17
rpc: add tests for simulate transaction inner instructions (#34495)
* rpc: add tests for simulate transaction inner instructions

* update encoding

* take out extra test case
2024-01-22 18:27:27 -06:00
Andrew Fitzgerald 45a2a701de
TransactionState: add TransactionCost (#34881) 2024-01-22 16:21:06 -08:00
Brooks 2f744f1639
Moves create_all_accounts_run_and_snapshot_dirs() into accounts-db utils (#34877) 2024-01-22 18:18:43 -05:00
Brooks 8cfad7f165
Replaces fs-err in verify_snapshot_archive() (#34887) 2024-01-22 17:20:00 -05:00
Brooks 16698b19d8
Replaces fs-err in snapshot_utils fns (#34883) 2024-01-22 21:36:22 +00:00
Tao Zhu a5c470d2fb
harden bank tests (#34821)
* harden bank tests by specifying exact genesis config wrt the fee rate and rent

* rename to clarify test function, add comments
2024-01-22 13:38:56 -06:00
Yihau Chen 9db4e84e72
bump shlex to 1.3.0 (#34878) 2024-01-23 03:18:07 +08:00
Brooks c264307f10
Removes get_io_error() (#34863) 2024-01-22 14:07:29 -05:00
Andrew Fitzgerald 5e4332ee35
Feature Impl: cost model uses number of requested write locks (#34820) 2024-01-22 09:22:49 -08:00
Brooks b78d41792a
Replaces fs-err in snapshot_utils tests (#34870) 2024-01-22 06:55:32 -05:00
Brooks d005b3a5b8
Removes fs-err dependency from accounts-db crate (#34869) 2024-01-22 06:55:13 -05:00
Yihau Chen f9bfb60c83
ci: publish crates directly (#34794) 2024-01-22 10:43:21 +08:00
Brooks 90933fea75
Replaces fs-err in snapshot_bank_utils.rs (#34861) 2024-01-21 20:54:25 -05:00
behzad nouri 9a520fd5b4
adds chained merkle shreds variant (#34787)
With the new chained variants, each Merkle shred will also embed the Merkle
root of the previous erasure batch.
2024-01-20 16:08:16 +00:00
samkim-crypto c071cf5cd0
[clap-v3-utils] Replace `pubkeys_sigs_of` with `try_pubkeys_sigs_of` (#34801)
* replace `pubkeys_sigs_of` with `try_pubkeys_sigs_of`

* propagate error from `try_pubkeys_sigs_of` to the caller
2024-01-20 11:20:51 +09:00
Brooks 3916c31cb4
Replaces fs-err in tiered storage (#34859) 2024-01-19 17:16:56 -05:00
Wen 4a2871f384
Add RestartHeaviestFork to Gossip (#34161)
* Add RestartHeaviestFork to Gossip.

* Add a test for out of bound value.

* Send observed_stake and total_epoch_stake in ResatartHeaviestFork.

* Remove total_epoch_stake from RestartHeaviestFork.

* Forgot to update ABI digest.

* Remove checking of whether stake is zero.

* Remove unnecessary new function and make new_rand pub(crate).
2024-01-19 13:59:25 -08:00
Brooks 3eb06b4b37
Replaces fs-err in accounts-db (#34860) 2024-01-19 16:35:02 -05:00
Tao Zhu acef7baab6
harden cli tests (#34844)
harden cli tests by setting up TestValidator correctly
2024-01-19 12:14:31 -06:00
Brooks 6835e10ba5
Replaces fs-err for some snapshot errors (#34837) 2024-01-19 12:53:10 -05:00
Nick Frostbutter 17de7a33e1
[docs] CI white spaces (#34858)
chore: whitespaces and formatting
2024-01-19 12:50:44 -05:00
Brooks a915e2f2a0
Returns ArchiveSnapshotPackageError from archive_snapshot_package() (#34855) 2024-01-19 11:21:14 -05:00
Brooks 2b0b5ae1ba
Gracefully handles errors when archiving snapshots (#34856) 2024-01-19 11:15:53 -05:00
Yueh-Hsuan Chiang 81b3210eec
[TieredStorage] Code refactoring for OwnersBlock (#34854)
#### Problem
The OwnersBlockFormat is currently defined inside footer.rs
instead of inside owners.rs.  In addition, the implementation of
OwnersBlock doesn't honor OwnersBlockFormat.

#### Summary of Changes
This PR moves OwnersBlockFormat from footer.rs to owners.rs
and repurpose OwnersBlock as OwnersBlockFormat (just like
the IndexBlockFormat inside index.rs)

#### Test Plan
Existing unit-tests.
2024-01-19 08:15:25 -08:00
dependabot[bot] 39687a01be
build(deps): bump wasm-bindgen from 0.2.89 to 0.2.90 (#34790)
* build(deps): bump wasm-bindgen from 0.2.89 to 0.2.90

Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) from 0.2.89 to 0.2.90.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.89...0.2.90)

---
updated-dependencies:
- dependency-name: wasm-bindgen
  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-19 23:30:22 +08:00
dependabot[bot] 4650c8dabe
build(deps): bump js-sys from 0.3.66 to 0.3.67 (#34783)
* build(deps): bump js-sys from 0.3.66 to 0.3.67

Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen) from 0.3.66 to 0.3.67.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: js-sys
  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-19 23:29:44 +08:00
dependabot[bot] cd4a424244
build(deps): bump rayon from 1.8.0 to 1.8.1 (#34826)
* build(deps): bump rayon from 1.8.0 to 1.8.1

Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.8.0 to 1.8.1.
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md)
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.8.0...rayon-core-v1.8.1)

---
updated-dependencies:
- dependency-name: rayon
  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-19 23:28:56 +08:00
steviez 3dd348802f
Bubble up genesis load errors instead of exiting (#34851)
The function open_genesis_config() performs several operations that
could fail. If any of these fail, the process exits immediately.

Instead of exiting immediately, bubble up the error and let the caller
decide the appropriate action. solana-validator and solana-ledger-tool
will functionally be unchanged, but this consolidates startup failures
for both of these processes.
2024-01-19 10:25:46 -05:00
Tao Zhu 32a3de0939
use intended lamports_per_signature for fee_structure (#34845)
use intented lamports_per_signature for fee_struture, instead of using default
2024-01-19 09:18:17 -06:00
Tao Zhu a57d612cec
explicitly sets tests that does not handle transaction fee (#34847) 2024-01-19 09:18:02 -06:00
Tao Zhu fc53fd9ad9
explicitly sets fee rate to zero for stake-accounts tests (#34848)
explicitly sets fee rate to zero
2024-01-19 09:17:31 -06:00
Alexander Meißner 8e5cf13352
Cleanup - feature gate of `stop_truncating_strings_in_syscalls` (#34842)
Cleanup feature gate of stop_truncating_strings_in_syscalls.
2024-01-19 15:28:45 +01:00
Alexander Meißner 9d132441fd
Cleanup - feature gate of `remove_bpf_loader_incorrect_program_id` (#34843)
Cleanup feature gate of remove_bpf_loader_incorrect_program_id.
2024-01-19 09:07:41 +01:00
Alexander Meißner b5b829111c
Cleanup - feature gate of `stop_sibling_instruction_search_at_parent` (#34841)
Cleanup feature gate of stop_sibling_instruction_search_at_parent.
2024-01-19 09:07:30 +01:00
Andrew Fitzgerald 6976b750a9
Refactor: SchedulerController tests call receive then schedule (#34836) 2024-01-18 22:49:11 -08:00
Yihau Chen 7470c3d68b
rpc: parse token accounts in simulate_transaction (#34619)
* rpc: parse token accounts in simulate_transaction

* add overwrite_accounts into get_encoded_account and get_parsed_token_account

* revert get_mint_decimals scope changes

* move common.rs to rpc/account_resolver.rs

* rename get_account to get_account_from_overwrites_or_bank

* add a comment

* clippy

* add comment

Co-authored-by: Tyera <teulberg@gmail.com>

---------

Co-authored-by: Tyera <teulberg@gmail.com>
2024-01-19 11:53:45 +08:00
Brennan 3d7ee19348
Sample peers if input peer missing for repair shred (#34818) 2024-01-18 18:33:38 -08:00
Tao Zhu 2c0278b8b2
be explicit of test expects zero transaction fee (#34846)
be explcit of test expects 0 transaction fee
2024-01-18 18:49:39 -06:00
samkim-crypto 73218595c6
[zk-token-sdk] Restrict Edwards and Ristretto multiscalar multiplication vector length to at most 512 (#34763)
* restrict curve25519 multiscalar multiplication vector length to 512

* add syscall tests for msm vector length

* add new feature gate `curve25519_restrict_msm_length`

* update tests for feature new gate

* Update programs/bpf_loader/src/syscalls/mod.rs

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

* remove length guard on the multisicalar mult lib function

---------

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2024-01-19 08:40:42 +09:00
Pankaj Garg dfb44959fa
Cleanup after simplify_writable_program_account_check feature activation (#34840) 2024-01-18 15:36:13 -08:00
Brooks 3388507878
Replaces fs-err in remove_tmp_snapshot_archives() (#34839) 2024-01-18 17:40:45 -05:00
Brooks 10590a3bcb
Replaces fs-err for HardLinkStoragesToSnapshotErrors (#34838) 2024-01-18 16:49:49 -05:00
Brooks 8f9d9152e0
Snapshot archive uses version file from bank snapshot (#34832) 2024-01-18 14:02:24 -05:00
Brooks b53915f164
Cleans up snapshot errors (#34831) 2024-01-18 13:42:22 -05:00