Commit Graph

23970 Commits

Author SHA1 Message Date
Will Hickey ee1365a96b
Update version to v1.17.24 (#35313) 2024-02-24 06:16:06 +00:00
mergify[bot] 5b24097790
v1.17: validator: include waited_for_supermajority in startup metric (backport of #35137) (#35276)
* validator: include waited_for_supermajority in startup metric (#35137)

(cherry picked from commit b0134ab04d)

# Conflicts:
#	core/src/validator.rs

* fix conflicts

---------

Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2024-02-21 18:51:44 -08:00
mergify[bot] 07b69c9194
v1.17: validator: ignore too old tower error (backport of #35229) (#35278)
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>
(cherry picked from commit 531793b4be)

Co-authored-by: DimAn <diman@diman.io>
2024-02-21 16:33:51 -05:00
mergify[bot] d56a08300a
v1.17: replay: reload tower if set-identity during startup (backport of #35173) (#35256)
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

(cherry picked from commit befe8b9d98)

Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2024-02-20 14:22:30 -08:00
mergify[bot] 17eb75ab49
v1.17: Report lost_insertions metrics correctly (backport of #35191) (#35198)
Report lost_insertions metrics correctly (#35191)

(cherry picked from commit 4b77ee5a1c)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2024-02-15 12:44:00 +09:00
steviez 04941eed46
v1.17.22 ==> v1.17.23 version bump (#35188) 2024-02-13 08:34:52 -07:00
Alexander Meißner dbf06e258a Revert "Add slot based feature"
0c403697ca9cb0a18d93acf25a09c9c344c9c03b
2024-02-12 22:15:52 -06:00
Stephen Akridge da2078d4a0 Add limit to looping in banking-stage 2024-02-12 22:15:52 -06:00
Alexander Meißner 0895cb8c03 Add slot based feature 2024-02-12 22:15:52 -06:00
Alexander Meißner 62a809f3f3 Reformulates the controlflow to use less nesting. 2024-02-12 22:15:52 -06:00
Alexander Meißner 08c78a528e Implements a proper insertion sort with a two key comparison operator. Allows replacements of different types of entries, disallows identical replacements. 2024-02-12 22:15:52 -06:00
Will Hickey 113eca2fac
Update version to v1.17.22 (#35184) 2024-02-12 16:05:01 -06:00
mergify[bot] 5bf32b4d5b
v1.17: Upgrade sbf tests to use bpf loader v3 (backport of #34691) (#35162)
* Upgrade sbf tests to use bpf loader v3 (#34691)

* update sbf test to use bpf_loader v2

* update test_program_sbf_invoke_sanity test

* update test bpf program owner

* update test_program_sbf_invoke_upgradeable_via_cpi

* update test_program_sbf_disguised_as_sbf_loader

* update test_program_reads_from_program_account

* update test_program_sbf_program_id_spoofing

* update test_program_sbf_caller_has_access_to_cpi_program

* update 3 more tests

* fix program buffer size in minimul for rent exempt calculation

* more test updates

* more update

* more test updates

* comments

* undo c format

* typo

* add sol_alloc_free not deployable and deployable tests

* comments

* review feedback - move buffer_keypair and program_keypair inside callee
fn.

* more refactor

* delete sof_alloc_free_syscall enabled tests

* revert lamport change

---------

Co-authored-by: HaoranYi <haoran.yi@solana.com>
(cherry picked from commit 8869d0c8a0)

# Conflicts:
#	programs/sbf/tests/programs.rs

* fix merge conflicts

* update tests to avoid using the new test api from 1.18

* manually backport #34722 to fix a test

* Ignore failing benchmark tests and fix compilation

---------

Co-authored-by: HaoranYi <haoran.yi@gmail.com>
Co-authored-by: HaoranYi <haoran.yi@solana.com>
Co-authored-by: haoran <haoran@mbook>
Co-authored-by: Stephen Akridge <sakridge@gmail.com>
2024-02-10 22:27:13 +01:00
Yihau Chen 4ae690dc5a
Bump version to v1.17.21 (#35106) 2024-02-06 22:00:38 +08:00
Alexander Meißner 09e0300b06
Feature - `disable_bpf_loader_instructions` (#35104)
* Remove feature gate for disable_bpf_loader_instructions.

* Disables related tests.
2024-02-06 12:35:21 +01:00
Yihau Chen 4f00402c90
Version bump v1.17.20 (#35105)
* Bump version to v1.17.20

* revert hashbrown bump
2024-02-06 19:15:54 +08:00
Alexander Meißner fad585eda4
Backport - feature `disable_bpf_loader_instructions` to v1.17 (#35093)
* Adds the feature disable_bpf_loader_instructions.

* Deactivates the feature in the tests and benches.
2024-02-06 10:05:07 +01:00
mergify[bot] a4621d8cd9
v1.17: Fix - LoadedPrograms statistics (backport of #35026) (#35050)
Fix - LoadedPrograms statistics (#35026)

Fixes hits, misses.
Adds reloads, lost_insertions.
Removes prunes_expired.

(cherry picked from commit 5dd9609aea)

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
2024-02-05 18:01:12 +01:00
mergify[bot] b8ac42552b
v1.17: ci: publish crates directly (backport of #34794) (#34868)
ci: publish crates directly (#34794)

(cherry picked from commit f9bfb60c83)

Co-authored-by: Yihau Chen <a122092487@gmail.com>
2024-01-28 13:15:11 +08:00
Will Hickey 11be41d60b
Update version to v1.17.19 (#34986) 2024-01-27 08:00:15 +00:00
mergify[bot] dd28fd52a6
v1.17: Cleans up stale accounts hash cache files (backport of #34933) (#34937)
* Cleans up stale accounts hash cache files (#34933)

(cherry picked from commit 5898b9a2f7)

# Conflicts:
#	accounts-db/src/cache_hash_data.rs

* resolves merge conflicts

---------

Co-authored-by: Brooks <brooks@solana.com>
2024-01-24 16:52:47 -05:00
Pankaj Garg de8415ccf5
Allow some minimum number of streams for a staked connection - v1.17 (#34894)
Allow some minimum number of streams for a staked connection
2024-01-23 18:14:30 -08:00
Jon C 74b083059c
v1.17: Pin spl-token-cli to 3.3.0 (#34920) 2024-01-23 16:34:49 -08:00
Yihau Chen cdda274e92
v1.17: bump shlex to 1.3.0 (#34880) 2024-01-23 15:26:52 -07:00
Will Hickey 6c8a23a0f3
Update version to v1.17.18 (#34866) 2024-01-21 22:57:59 +08:00
mergify[bot] 3261de4cd6
v1.17: Fix versioned message json deserialization (backport of #34808) (#34824) 2024-01-21 09:24:54 +08:00
mergify[bot] 27a4380075
v1.17: geyser: allow custom name in config file (backport of #33550) (#34669)
* geyser: allow custom name in config file (#33550)

Allow loading the plugin name from the json config file as opposed to use plugin.name which is called before config file is passed to it. Allowing different plugins using the same executable to use different names.

(cherry picked from commit c82fc6c98e)

# Conflicts:
#	geyser-plugin-manager/src/geyser_plugin_manager.rs

* Fixed merge conflicts

---------

Co-authored-by: Kirill Fomichev <fanatid@ya.ru>
Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com>
2024-01-19 20:46:15 -08:00
mergify[bot] 7e18276b39
v1.17: [zk-token-sdk] Restrict Edwards and Ristretto multiscalar multiplication vector length to at most 512 (backport of #34763) (#34849)
* [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>
(cherry picked from commit 73218595c6)

# Conflicts:
#	sdk/src/feature_set.rs

* resolve conflict

---------

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
2024-01-20 09:53:28 +09:00
mergify[bot] d878262bb7
v1.17: rpc: parse token accounts in simulate_transaction (backport of #34619) (#34852)
* 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>
(cherry picked from commit 7470c3d68b)

* remove innerInstructions

---------

Co-authored-by: Yihau Chen <a122092487@gmail.com>
Co-authored-by: yihau <yihau.chen@icloud.com>
2024-01-19 17:03:35 -07:00
Yihau Chen 407dfba6db
v1.17: pin ahash to 0.8.5 (#34802) 2024-01-18 17:19:23 +00:00
mergify[bot] 3eae1c4e70
v1.17: sdk: add bounds check when instantiating `Keypair` from byte array (backport of #34817) (#34822)
sdk: add bounds check when instantiating `Keypair` from byte array (#34817)

(cherry picked from commit 6dbcdc063f)

Co-authored-by: Trent Nelson <trent@solana.com>
2024-01-18 04:46:07 +00:00
Tyera fbb11a8fe3
v1.17: Bump h2 to v0.3.24 (#34823)
Bump h2 to v0.3.24
2024-01-18 03:13:31 +00:00
mergify[bot] 35b7df1cc1
v1.17: ci: use openssl 3.1.1 for Windows build (backport of #34795) (#34797)
ci: use openssl 3.1.1 for Windows build (#34795)

(cherry picked from commit 0e90e985dd)

Co-authored-by: Yihau Chen <a122092487@gmail.com>
2024-01-17 19:07:31 +00:00
Yihau Chen cb6aef7c04
Bump version to v1.17.17 (#34804) 2024-01-17 13:24:26 +08:00
mergify[bot] 0aea75aaf5
v1.17: [zk-token-proof] include `VerifyBatchRangeProofU256` in the `enable_zk_transfer_with_fee` feature gate (backport of #34747) (#34765)
[zk-token-proof] include `VerifyBatchRangeProofU256` in the `enable_zk_transfer_with_fee` feature gate (#34747)

include `VerifyBatchRangeProofU256` in the `enable_zk_transfer_with_fee` feature

(cherry picked from commit bc136423b4)

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
2024-01-12 23:28:05 +09:00
mergify[bot] 07acb46b6f
v1.17: Bigtable: update google proto files and allow configuration of max_message_size (backport of #34740) (#34741)
Bigtable: update google proto files and allow configuration of max_message_size (#34740)

* Update proto files with tonic-build v0.9.2

* Manually ignore invalid doc-tests

* Add new ReadRowsRequest fields

* Add LedgerStorageConfig::max_message_size and default value

* Add BigtableConnection::max_message_size and use on client creation

* Add max_message_size to RpcBigtableConfig and make const pub

* Add solana-validator cli arg

(cherry picked from commit 166be2995e)

Co-authored-by: Tyera <tyera@solana.com>
2024-01-11 05:25:19 +00:00
mergify[bot] 6af8e3b00d
v1.17: check plugin name on plugin_reload rpc call (backport of #33582) (#34668)
check plugin name on plugin_reload rpc call
2024-01-10 15:00:40 -08:00
mergify[bot] 66eacff58c
v1.17: Adds newline to fastboot's CLI help (backport of #34712) (#34719)
Adds newline to fastboot's CLI help (#34712)

(cherry picked from commit abe699b7b4)

Co-authored-by: Brooks <brooks@solana.com>
2024-01-10 08:54:49 -05:00
Will Hickey fc778555d9
Update version to v1.17.16 (#34680) 2024-01-07 19:23:10 +08:00
mergify[bot] cc0e9a0e5a
v1.17: Logs the number of storages kept alive by fastboot (backport of #34667) (#34670)
Logs the number of storages kept alive by fastboot (#34667)

(cherry picked from commit e84974cf63)

Co-authored-by: Brooks <brooks@solana.com>
2024-01-05 18:36:19 -05:00
Yihau Chen 9c09b16f86
v1.17: pin ahash to 0.8.4 (#34636)
pin ahash to 0.8.4
2024-01-03 14:31:02 +08:00
Will Hickey 731d42f2a2
Update version to v1.17.15 (#34627) 2024-01-03 12:40:29 +08:00
mergify[bot] cc7c59af9f
v1.17: add metrics on throttled streams (backport of #34579) (#34582)
add metrics on throttled streams (#34579)

(cherry picked from commit 1a001751dd)

Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com>
2023-12-22 21:14:01 -08:00
mergify[bot] 7d41bc489a
v1.17: rekey partitioned epoch rewards (backport of #34502) (#34571)
rekey partitioned epoch rewards (#34502)

Co-authored-by: HaoranYi <haoran.yi@solana.com>
(cherry picked from commit 2fd0bae71e)

Co-authored-by: HaoranYi <haoran.yi@gmail.com>
2023-12-22 13:08:20 -06:00
mergify[bot] 7f7ad61b71
v1.17: rekey stake limit feature (backport of #34503) (#34508)
rekey stake limit feature (#34503)

Co-authored-by: HaoranYi <haoran.yi@solana.com>
(cherry picked from commit 1ac017c409)

Co-authored-by: HaoranYi <haoran.yi@gmail.com>
2023-12-22 06:41:19 -06:00
mergify[bot] 12d5be04e6
v1.17: Throttle unstaked quic streams for a given connection (backport of #34562) (#34574) 2023-12-21 20:51:36 -08:00
mergify[bot] bbdce0f273
v1.17: spl: Bump token-2022 to v1 (backport of #34412) (#34572)
* spl: Bump token-2022 to v1 (#34412)

* Update toml and lockfiles

* account-decoder: Add group and group member extensions

* transaction-status: Add token group + pointer extensions

* program-test: Update token-2022 binary

(cherry picked from commit 8a8466cd86)

# Conflicts:
#	Cargo.toml

* Fix merge conflicts

---------

Co-authored-by: Jon Cinque <me@jonc.dev>
2023-12-21 22:16:43 -05:00
mergify[bot] 32c896397a
v1.17: Add ContactInfo handling for shred versioning (backport of #34286) (#34570)
Add ContactInfo handling for shred versioning (#34286)

* handle ContactInfo in places where only LegacyContactInfo was used

* missed a spot

* missed a spot

* import contact info for crds lookup

* cargo fmt

* rm contactinfo from crds_entry. not supported yet

* typo

* remove crds.nodes insert for ContactInfo. not supported yet

* forgot to remove clusterinfo in remove()

* move around contactinfo match arm

* remove contactinfo updating crds.shred_version

(cherry picked from commit 8ed149a3f2)

Co-authored-by: Greg Cusack <greg.cusack@solana.com>
2023-12-21 15:33:44 -08:00
mergify[bot] 069612e0dc
v1.17: ci: split cargo-clippy into stable and nightly (backport of #34566) (#34569)
* ci: split cargo-clippy into stable and nightly (#34566)

* ci: split cargo-clippy into stable and nightly

* ci: update mergify

(cherry picked from commit 5247be17a9)

# Conflicts:
#	.mergify.yml
#	scripts/cargo-clippy.sh

* fix conflict

---------

Co-authored-by: Yihau Chen <a122092487@gmail.com>
Co-authored-by: yihau <yihau.chen@icloud.com>
2023-12-21 20:09:25 +00:00
Will Hickey 6a0ac908ed
Update version to v1.17.14 (#34563) 2023-12-21 10:39:46 -06:00