Commit Graph

2292 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
Will Hickey 731d42f2a2
Update version to v1.17.15 (#34627) 2024-01-03 12:40:29 +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
Will Hickey 6a0ac908ed
Update version to v1.17.14 (#34563) 2023-12-21 10:39:46 -06: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] 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
Will Hickey aaa266eb4d
Update version to v1.17.13 (#34496) 2023-12-17 10:19:34 +00:00
Will Hickey 492eb247af
Update version to v1.17.12 (#34492) 2023-12-16 04:25:12 +00: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
Will Hickey 9f51f5d0fc
Update version to v1.17.10 (#34394) 2023-12-10 13:57:00 -07:00
Will Hickey 78e7796a02
Update version to v1.17.9 (#34378) 2023-12-09 08:58:56 -06: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] 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
Will Hickey fdaa4caaaf
Update version to v1.17.8 (#34293) 2023-12-01 03:02:19 +00:00
Will Hickey 89906d8d3b
Update version to v1.17.7 (#34157) 2023-11-20 10:43:19 +08:00
mergify[bot] 0a195ad3d6
v1.17: [zk-token-proof] Feature gate transfer with fee related proofs (backport of #34103) (#34129)
* [zk-token-proof] Feature gate transfer with fee related proofs (#34103)

feature gate zk-token-proof transfer with fee

(cherry picked from commit a8863bd9fe)

# Conflicts:
#	sdk/src/feature_set.rs

* resolve conflict

---------

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
2023-11-18 05:56:09 +09:00
Yihau Chen 6418bf3097
Bump version to v1.17.6 (#34025) 2023-11-12 09:47:59 -06:00
mergify[bot] 97795881ce
v1.17: Burn fees collected into invalid accounts (backport of #33887) (#33951)
* Burn fees collected into invalid accounts (#33887)

* refactor: create bank::fee_distribution module

* feature: add checks to fee distribution

* refactor: move Bank::deposit fn into test_utils

* feedback

* feedback 2

* add datapoints

* change to datapoint_warn

* typo

(cherry picked from commit ebe8afb0c3)

# Conflicts:
#	runtime/src/bank.rs
#	runtime/src/bank/tests.rs

* resolve conflicts

---------

Co-authored-by: Justin Starry <justin.starry@icloud.com>
Co-authored-by: Justin Starry <justin@solana.com>
2023-11-07 00:49:34 +01:00
mergify[bot] e206ea95ca
v1.17: rekey stake redelegate feature (backport of #33957) (#33958)
rekey stake redelegate feature (#33957)

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

Co-authored-by: HaoranYi <haoran.yi@gmail.com>
2023-11-06 19:00:45 +00:00
Will Hickey 1d2609e9f0
Update version to v1.17.5 (#33931) 2023-10-31 14:13:22 -05:00
mergify[bot] ae7d7427be
v1.17: revert programify feature gate (backport of #33897) (#33905)
revert programify feature gate (#33897)

(cherry picked from commit ecd674bd92)

Co-authored-by: Joe C <joe.caulfield@solana.com>
2023-10-28 00:24:31 +02:00
Will Hickey a5188a4966
Update version to v1.17.4 (#33799) 2023-10-20 22:43:34 +00:00
mergify[bot] d550015e7e
v1.17: program error: add `ArithmeticOverflow` (backport of #33767) (#33779)
program error: add `ArithmeticOverflow` (#33767)

(cherry picked from commit 37d093a30e)

Co-authored-by: Joe C <joe.caulfield@solana.com>
2023-10-20 18:12:57 +02:00
mergify[bot] 945daef906
v1.17: SDK: update error variants in `Feature::from_account_info` (backport of #33750) (#33780)
SDK: update error variants in `Feature::from_account_info` (#33750)

(cherry picked from commit 6b1e9b8974)

Co-authored-by: Joe C <joe.caulfield@solana.com>
2023-10-20 16:55:52 +02:00
mergify[bot] 423de49f8f
v1.17: program error: add `InvalidAccountOwner` (backport of #33766) (#33773) 2023-10-19 20:24:30 +02:00
mergify[bot] 8af823401a
v1.17: Enable frozen_abi on banking trace file (backport of #33501) (#33578)
* Enable frozen_abi on banking trace file (#33501)

* Enable frozen_abi on banking trace file

* Fix ci with really correct bugfix...

* Remove tracker_callers

* Fix typo...

* Fix AbiExample for Arc/Rc's Weaks

* Added comment for AbiExample impl of SystemTime

* Simplify and document EvenAsOpaque with new usage

* Minor clean-ups

* Simplify SystemTime::example() with UNIX_EPOCH...

* Add comment for AbiExample subtleties

(cherry picked from commit 95810d876a)

# Conflicts:
#	Cargo.lock

* fix conflict

---------

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2023-10-17 13:48:04 +09:00
Will Hickey 944375b953
Update version to v1.17.3 (#33721) 2023-10-16 21:08:19 +00:00
mergify[bot] eceba1c241
v1.17: Update hashes per tick with feature gates (backport of #33600) (#33661)
Update hashes per tick with feature gates (#33600)

* Update hashes per tick with feature gates

(cherry picked from commit b36d051b51)

Co-authored-by: Brennan <brennan.watt@solana.com>
2023-10-11 12:26:12 -07:00
Will Hickey 542b53e5bb
Update version to v1.17.2 (#33573) 2023-10-07 12:36:55 -06:00
mergify[bot] 9318394bb5
v1.17: Bank: Add function to replace empty account with upgradeable program on feature activation (backport of #32783) (#33527)
Bank: Add function to replace empty account with upgradeable program on feature activation (#32783)

* replace program account

* modify for all cases

* remove non-data swap

* address tests & conditional feedback

* get the rent involved

* mix in owner & executable

* feature-related cases

* stripped back to feature-specific case only

* added feature

* address initial feedback

* added more lamport checks

* condense tests

* using test_case

* add fail cases to tests

* more cleanup

* add verifiably built program

* update program account state

* cleaned up serializing logic

* use full word capitalization

* rename old & new to dst & src

* swap src and dst in parameters

* add warnings and errors

* rename feature to programify

* test suite description clarity

* remove strings from datapoints

* spell out source and destination

* more verbose comments in account replace functions

* move lamport calculation

* swap lamport check for state check

* move replace functions to helper module

* make replace_account methods fallible

* refactor error handling

* add test for source program state

(cherry picked from commit 25460f76e7)

Co-authored-by: Joe C <jcaulfield135@gmail.com>
2023-10-05 18:28:30 +02:00
Will Hickey 3a49a00bd4
Update version to v1.17.1 (#33489) 2023-10-03 10:20:20 -05:00
ch9xy 9f6ef2fe62
Typo fix in instruction.rs (#33473)
Typo fix
2023-09-30 06:05:05 +00:00
Yihau Chen 0b2beba357
chore(bpf): remove unused deps (#33435)
chore: remove unused deps
2023-09-28 11:16:16 +00:00
HaoranYi d25d53e979
Fix bug of same-epoch stake deactivation after stake redelegation (#32606)
* fix stake deactivation in the same epoch after redelegation bug

add tests

refactor common code into fn

avoid early return

add feature gate for the new stake redelegate behavior

move stake tests out of cli

add stake-program-test crate

reimplemnt stake test with program-test

remove stake-program-test crate

reviews

add setup.rs

remove clippy

reveiws

* reviews

* review comments

---------

Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-09-25 16:35:40 -05:00
samkim-crypto 08aba38d35
[feature-id] add poseidon compression syscall feature id (#33392)
add poseidon compression syscall feature id
2023-09-25 09:26:17 -07:00
ananas-block 997aa0a3f8
Feat(syscall): add altbn128 g1 & g2 compression (#32870)
* solana-program - altbn128: add g1 & g2 compression

still fixing tests for point of infinity

feat: proof compression syscall working

add rust test to ci

remove prints

added c test

added sycall pricing

* fixed ci checks

* refactored altbn128 and compression
2023-09-25 05:43:34 -07:00
Trent Nelson 1840fd7ab3
Feature - better error codes for tx lamport check (#33343)
Replaces `TransactionError::InstructionError(0, InstructionError::UnbalancedInstruction)` with `TransactionError::UnbalancedTransaction`.

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
2023-09-22 23:58:05 +00:00
Trent Nelson 7c545b0ae9
bump rust stable to 1.72.1 (#33333)
* bump rust stable to 1.72.1

* bump rust nightly to 2023-09-20

* fix nightly lint -- unused doc comment

-- rustdoc does not generate documentation for expression fields

* fix nightly lint -- unnecessarily eager cloning of iterator items

* fix nightly lint -- loop never actually loops
2023-09-20 23:53:36 -06:00
Tyera bca41edf20
Make active stake consistent in split (#33295)
* Add feature gate

* Add helper fn

* Require split destination to be rent-exempt if it is active

* Update cli to prefund split accounts

* cli: require rent param with sign-only

* Update tokens to prefund split accounts

* Update split tests with sysvar accounts

* Fix test_split_to_account_with_rent_exempt_reserve

* Fix test_staked_split_destination_minimum_balance

* Fix test_split_more_than_staked

* Fix test_split_minimum_stake_delegation and remove misleading StakeState::Initialized case

* Fix test_split_from_larger_sized_account

* Add test for pre-/post-activation behavior splitting some or all of stake account

* Assert active stake

* Fix runtime test

* Ignore stake-pool downstream

* Review comments

* Feature gate sysvar reads
2023-09-20 06:00:51 +00:00
Kevin Heavey 92ab3827fd
program: move array-bytes to dev-dependencies (#33277)
* program: move array-bytes to dev-dependencies

* run cargo-for-all-lock-files.sh tree
2023-09-19 09:07:35 -07:00
Alexander Meißner bc38ef27d8
Feature - Enable Program-Runtime-v2 and Loader-v4 (#33294)
* Adds a new feature `enable_program_runtime_v2_and_loader_v4`.

* Adds a feature gated builtin entry for the solana_loader_v4_program.
2023-09-19 16:29:52 +02:00
Pankaj Garg 5dbc19ccbf
Processors to compile and send LoaderV4 CLI commands (#33228)
* Processors to compile and send LoaderV4 CLI commands

* suppress unused code warning

* clippy fixes

* redeploy program using source buffer

* unify deploy and redeploy to a single function

* clippy fixes

* fixes after testing the CLI frontend
2023-09-18 06:43:33 -07:00
Brooks 6481496564
Derives Pod and Zeroable on Hash (#33256) 2023-09-15 07:27:30 -04:00
behzad nouri c1090d3959
moves new_warmup_cooldown_rate_epoch outside iterators and for loops (#33259)
Recalculating new_warmup_cooldown_rate_epoch for each item is redundant
and wasteful and instead can be done only once outside the iterators and
for loops.
Also NewWarmupCooldownRateEpoch is unnecessary and verbose and is
removed in this commit.
2023-09-15 00:06:34 +00:00
Yihau Chen 99b24bd741
check source_path before delete it (#33255) 2023-09-14 18:44:12 +00:00
Christian Kamm 525e59f01a
sdk, programs/bpf_loader: add sol_remaining_compute_units syscall (#31640)
bpf_loader: add sol_remaining_compute_units syscall

Co-authored-by: jonch <9093549+jon-chuang@users.noreply.github.com>
2023-09-13 08:57:08 -06:00
bji bdf7207eec
Implement timely vote credits feature. (#32957) 2023-09-12 10:40:04 -07:00