Commit Graph

23883 Commits

Author SHA1 Message Date
godmodegalactus c1040b0129
Add mango patches to jito 2024-01-10 15:58:34 +01:00
buffalu 165a87482d Backport Jito Patch (#408)
Backport clone derivation (416) (#418)

backports #430: update jito-programs (#432)

Backport #446 to v1.17 (#448)

[JIT-1661] Faster Autosnapshot (#445)

v1.17: Backport #449 (#451)

backports #419: add upsert to accountoverrides (#421)

backport 428 runtime-plugin (#458)

[JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499)

Backport #500 to v1.17 (#507)

Backport #520: add priority fees to mev claim (#525)
2024-01-09 17:05:26 -06: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
mergify[bot] ef1fb9ec8e
v1.17: ledger-tool: support v0 transactions in blocks from bigtable (backport of #34544) (#34550)
ledger-tool: support v0 transactions in blocks from bigtable (#34544)

Support v0 transactions

(cherry picked from commit 7d209a448d)

Co-authored-by: Tyera <tyera@solana.com>
2023-12-21 05:56:21 +00:00
mergify[bot] de35043e31
v1.17: Cargo needs version arg after subcommand (backport of #34547) (#34551)
Cargo needs version arg after subcommand (#34547)

(cherry picked from commit d4363526fe)

Co-authored-by: Tyera <tyera@solana.com>
2023-12-20 20:26:12 +00:00
mergify[bot] b9aaedba6a
v1.17: Add feature flag for LastIndex and Erasure duplicate proofs (backport of #34360) (#34541)
* Add feature flag for LastIndex and Erasure duplicate proofs (#34360)

* Add feature flag for LastIndex and Erasure duplicate proofs

* pr feedback: use root bank instead of 2 params

* pr feedback: & instead of &Arc

* pr feedback: reuse fn, remove redundant clones

* rebase: fix feature set conflict

(cherry picked from commit def3bc4c4f)

# Conflicts:
#	sdk/src/feature_set.rs

* fix feature set conflict

---------

Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2023-12-20 14:21:50 -05:00
mergify[bot] 907b904784
v1.17: disables turbine and repair QUIC endpoints on mainnet-beta (backport of #34523) (#34526)
* disables turbine and repair QUIC endpoints on mainnet-beta (#34523)

On mainnet-beta, respective QUIC endpoint are unnecessary for now until
testnet has fully migrated to QUIC. The commit disables turbine and
repair QUIC endpoints on mainnet-beta.

(cherry picked from commit 4feadbdb7c)

# Conflicts:
#	core/src/validator.rs

* resolves mergify merge conflicts

---------

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2023-12-19 20:49:57 +00:00
mergify[bot] f7a655fe0c
v1.17: replay: feature flag consumption of duplicate proofs from blockstore (backport of #34372) (#34515)
* replay: feature flag consumption of duplicate proofs from blockstore (#34372)

* replay: feature flag consumption of duplicate proofs from blockstore

* pr feedback: reorder check, add flag for restart logic

(cherry picked from commit 4a8d27d921)

# Conflicts:
#	sdk/src/feature_set.rs

* fix feature set conflict

---------

Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2023-12-19 15:32:19 -05:00
mergify[bot] 8301417f9e
v1.17: cargo-install-all: use full path for sourcing (backport of #34525) (#34528)
cargo-install-all: use full path for sourcing (#34525)

Use full path for sourcing

(cherry picked from commit 51c9963a60)

Co-authored-by: Tyera <tyera@solana.com>
2023-12-19 20:28:42 +00:00
mergify[bot] 9a328fb54f
v1.17: build(deps): bump zerocopy from 0.7.15 to 0.7.31 (backport of #34477) (#34506)
* build(deps): bump zerocopy from 0.7.15 to 0.7.31 (#34477)

* build(deps): bump zerocopy from 0.7.15 to 0.7.31

Bumps [zerocopy](https://github.com/google/zerocopy) from 0.7.15 to 0.7.31.
- [Release notes](https://github.com/google/zerocopy/releases)
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/zerocopy/compare/v0.7.15...v0.7.31)

---
updated-dependencies:
- dependency-name: zerocopy
  dependency-type: indirect
...

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>
(cherry picked from commit a1032ef42e)

# Conflicts:
#	Cargo.lock
#	programs/sbf/Cargo.lock

* Fix conflicts

---------

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2023-12-18 11:51:46 -07:00
Will Hickey aaa266eb4d
Update version to v1.17.13 (#34496) 2023-12-17 10:19:34 +00:00
Alexander Meißner 5787b48b92
v1.17 - Cooperative Program Loading (#34487)
* Disables verification-less reloading.

* Refactors LoadedPrograms::extract() to use a mutable parameter instead of returning the list of missing entries.

* cargo fmt

* Refactors LoadedPrograms::extract() to use a mutable parameter instead of returning a LoadedProgramsForTxBatch.

* Adds explicit SecondLevel structure to LoadedPrograms.

* Adds cooperative_loading_task.

* Implements cooperative loading in the bank.

* Fixes fork graph in tests.

* Adds LoadingTaskWaiter.
2023-12-16 14:27:17 +01:00
Will Hickey 492eb247af
Update version to v1.17.12 (#34492) 2023-12-16 04:25:12 +00:00
mergify[bot] ec87ec9990
v1.17: makes last erasure batch size >= 64 shreds (backport of #34330) (#34433) 2023-12-15 14:52:59 +00:00
mergify[bot] 509b9b970b
v1.17: [zk-token-sdk] Fix range proof transcript seed typo (backport of #34468) (#34470)
[zk-token-sdk] Fix range proof transcript seed typo (#34468)

fix range proof transcript seed typo

(cherry picked from commit aaccbdd0ae)

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
2023-12-14 15:55:38 -08:00
mergify[bot] 96d57e88dd
v1.17: CI: add check for explicit spl-token-cli version (backport of #34430) (#34465)
CI: add check for explicit spl-token-cli version (#34430)

* Add script to specify spl-token-cli version

* Add check for spl-token-cli version to CI

* Add minor release branch cleanup instruction to unblock CI on the new stable branch

---------

Co-authored-by: Will Hickey <will.hickey@solana.com>
(cherry picked from commit e6e191f843)

Co-authored-by: Tyera <tyera@solana.com>
2023-12-14 17:49:43 +00:00
mergify[bot] e191d8d1ca
v1.17: Refactor - `ExtractedPrograms` (backport of #34205) (#34351)
Refactor - `ExtractedPrograms` (#34205)

* Puts ExtractedPrograms into Arc<Mutex<>>.

* Merges ExtractedPrograms::missing and ExtractedPrograms::unloaded.

* Unifies missing entry insertion in LoadedPrograms::extract().

(cherry picked from commit 4ee5078e5f)

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
2023-12-14 17:53:37 +01:00
mergify[bot] ca34005ad5
v1.17: Set root slot/epoch in cache constructor (backport of #34447) (#34460) 2023-12-14 07:15:56 -08:00
steviez 4d131b0e4c
blockstore: Allow fallback for AddressSignature index() (#34440)
blockstore: Allow fallback for AddressSignature index

A change landed somewhat recently in master that changed the key format
of the transaction metadata columns. A compatibility backport was
introduced to allow a blockstore that had been populated with this newer
version to still be readable by v1.17 (backwards software compat).

However, there was an oversight in the backport. Namely, the index()
function for AddressSignatures column did a regular unwrap() on the
try_current_index() result. try_current_index() can fail if a key with
an unknown size is encountered. This would be exactly the case for
encountering a key that was populated by the newer software version with
the different key format.

So, use .unwrap_or_else() in the index() implementation for
AddressSignatures; this will now be consistent with the implementation
of index() for TransactionStatus column.
2023-12-13 19:38:06 -06:00
steviez 28e8af4aa3
V1.17.11 version bump (#34451)
* Update version to v1.17.11

* Undo hashbrown version changes
2023-12-13 19:23:07 -06:00
mergify[bot] 928e384393
v1.17: Patch tokio to vendored version (backport of #34240) (#34435)
* Patch tokio to vendored version (#34240)

* Patch tokio to vendored version

* Fix typo

(cherry picked from commit aaa48ec8db)

# Conflicts:
#	Cargo.toml

* Fix conflict

---------

Co-authored-by: Tyera <tyera@solana.com>
2023-12-13 08:55:05 -07:00
mergify[bot] 8b2c1a547d
v1.17: changelog: Adds --use-snapshot-archives-at-startup to v1.17.0 (backport of #34401) (#34438)
changelog: Adds --use-snapshot-archives-at-startup to v1.17.0 (#34401)

(cherry picked from commit 501458a7da)

Co-authored-by: Brooks <brooks@solana.com>
2023-12-13 10:50:41 -05:00
mergify[bot] 0b6a172a82
v1.17: Fix - Uses `fetch_add()` to accumulate usage counters in `LoadedPrograms` (backport of #34319) (#34348)
Fix - Uses `fetch_add()` to accumulate usage counters in `LoadedPrograms` (#34319)

Uses fetch_add() to accumulate usage counters.

(cherry picked from commit f70d5481bc)

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
2023-12-12 22:42:33 +01:00
mergify[bot] 222ca9bc65
v1.17: Cleanup - program runtime (backport of #34318) (#34413)
Cleanup - program runtime (#34318)

* Removes retain() from prune_by_deployment_slot() as that is covered in remove_programs_with_no_entries() already.

* Removes remove_programs_with_no_entries() from sort_and_unload().

* Fixes ix_usage_counter in LoadedProgram::to_unloaded().

* Fixes doc comment of LoadedProgram::ix_usage_counter.

* Removes unused num_total_programs from test_eviction().

* Replaces .as_ref() in lambda with std::option::Option::as_ref.

* Replaces .for_each() with a for-loop.

* Uses .retain() instead of iter().filter().cloned().collect().

(cherry picked from commit cf0c52c207)

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
2023-12-12 15:21:57 +01:00
Will Hickey 9f51f5d0fc
Update version to v1.17.10 (#34394) 2023-12-10 13:57:00 -07:00
mergify[bot] b9fc9486db
v1.17: ci: add macos clippy test (backport of #34272) (#34388)
* ci: add macos clippy test (#34272)

* ci: add clippy test for macos and windows

* ci: remove windows from clippy test

* ci: cancel cargo clippy on Github Actions when new commits comming

* ci: set -e for .github/scripts/cargo-clippy-before-script.sh

(cherry picked from commit 4832b4ecec)

* scripts/cargo-clippy.sh: Extract our non-trivial cargo clippy command (manual backport of #33982)

---------

Co-authored-by: Yihau Chen <a122092487@gmail.com>
Co-authored-by: yihau <yihau.chen@icloud.com>
2023-12-10 20:56:48 +00:00
mergify[bot] daf37308f2
v1.17: Add metrics for locking the blockhash queue in banking stage (backport of #34382) (#34384)
* Add metrics for locking the blockhash queue in banking stage (#34382)

(cherry picked from commit 2971e84ec8)

# Conflicts:
#	core/src/banking_stage/consume_worker.rs

* resolve conflicts

---------

Co-authored-by: Justin Starry <justin.starry@icloud.com>
Co-authored-by: Justin Starry <justin@solana.com>
2023-12-09 10:07:35 -07:00
Will Hickey 78e7796a02
Update version to v1.17.9 (#34378) 2023-12-09 08:58:56 -06:00
mergify[bot] 01306a6e1e
v1.17: tokens: fix url clap arg name (backport of #34371) (#34375)
tokens: fix url clap arg name (#34371)

Fix url clap arg name

(cherry picked from commit e8945d2ed5)

Co-authored-by: Tyera <tyera@solana.com>
2023-12-08 17:00:40 -07:00
mergify[bot] 7036ea0345
v1.17: chore: Update light-poseidon to 0.2.0 (backport of #33923) (#34247)
chore: Update light-poseidon to 0.2.0 (#33923)

That new release contains an important change which prevents a
potential DDoS.

* Lightprotocol/light-poseidon#32

Invoking `from_bytes_be` function light-poseidon 0.1.1 inverts all
the inputs before performing a check whether their length exceeds
the modulus of the prime field. Therefore, it was prone to an
attack, where a mailicious user could submit long byte slices just
to DDoS the validator, being stuck on inverting large byte sequences.

The update and mentioned change fixes the same issue as #33363 aims
to address.

The new release contains also few other less important changes like:

* Lightprotocol/light-poseidon#37
* Lightprotocol/light-poseidon#38
* Lightprotocol/light-poseidon#39

(cherry picked from commit 67f8daf6e9)

Co-authored-by: vadorovsky <vadorovsky@protonmail.com>
2023-12-09 08:11:34 +09:00
mergify[bot] 4b10458b3d
v1.17: Comment sysvar and builtin lists as deprecated and remove new keys (backport of #34365) (#34369)
Comment sysvar and builtin lists as deprecated and remove new keys (#34365)

(cherry picked from commit 79739e1b78)

Co-authored-by: Justin Starry <justin.starry@icloud.com>
2023-12-08 16:34:33 -06:00
mergify[bot] d1858aaed1
v1.17: Fix `solana-address-lookup-table-program` compilation (backport of #34353) (#34357)
Fix `solana-address-lookup-table-program` compilation (#34353)

* Add  checks to decide which SDK crate to use

* Make  module only available in non-program environments

* Remove `solana-sdk` export and only export from `solana-program`

(cherry picked from commit 46921b3135)

Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2023-12-07 19:12:14 +01:00
mergify[bot] fe8f77e7bd
v1.17: adds feature gated code to drop legacy shreds (backport of #34328) (#34346)
* adds feature gated code to drop legacy shreds (#34328)

(cherry picked from commit d5eee01950)

* derefrences instead of clone

---------

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2023-12-07 17:10:33 +00:00
mergify[bot] 22f4694c75
v1.17: shred: expose merkle root for use in blockstore (backport of #34063) (#34291)
shred: expose merkle root for use in blockstore (#34063)

* shred: expose merkle root for use in blockstore

* pr feedback: sorted, keep Result return type

* convert Result<Hash> -> Option<Hash>

(cherry picked from commit 6a5b8e86f3)

Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2023-12-07 09:33:26 -05:00
mergify[bot] d17243fc41
v1.17: Fix - Removes redundant `TotalBatchesLen` from `ThreadExecuteTimings::accumulate()` (backport of #34179) (#34347)
Fix - Removes redundant `TotalBatchesLen` from `ThreadExecuteTimings::accumulate()` (#34179)

Removes redundant TotalBatchesLen from ThreadExecuteTimings::accumulate().

(cherry picked from commit c0a4fc870c)

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
2023-12-07 10:36:51 +01:00
mergify[bot] 311e986b42
v1.17: patches slots_per_epoch vs last_slot ordering in shred_fetch_stage (backport of #34338) (#34345)
patches slots_per_epoch vs last_slot ordering in shred_fetch_stage (#34338)

(cherry picked from commit b1c701e53b)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2023-12-06 21:54:32 +00:00
mergify[bot] a665996e0b
v1.17: exits send_datagram_task if the connection is closed (backport of #33836) (#34327)
exits send_datagram_task if the connection is closed (#33836)

Waiting on receiver.recv() can unnecessarily block while the connection is already closed.
The commit exits send_datagram_task if the connection is closed.

(cherry picked from commit 03fbe083b8)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2023-12-05 22:10:09 +00:00
mergify[bot] e3bd31c067
v1.17: exits send_requests_task if the connection is closed (backport of #33837) (#34324)
exits send_requests_task if the connection is closed (#33837)

receiver.recv() can unnecessarily block when the connection is already closed.
The commit exits send_requests_task if the connection is closed.

(cherry picked from commit 2096626633)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2023-12-05 17:12:14 +00:00
mergify[bot] da2dadd05e
v1.17: add merkle root meta column to blockstore (backport of #33979) (#34028)
* add merkle root meta column to blockstore (#33979)

* add merkle root meta column to blockstore

* pr feedback: remove write/reads to column

* pr feedback: u64 -> u32 + revert

* pr feedback: fec_set_index u32, use Self::Index

* pr feedback: key size 16 -> 12

(cherry picked from commit e457c02879)

* blockstore: make merkle root Optional in MerkleRootMeta column (#34091)

---------

Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2023-12-01 04:02:12 +00:00
Will Hickey fdaa4caaaf
Update version to v1.17.8 (#34293) 2023-12-01 03:02:19 +00:00