Commit Graph

2492 Commits

Author SHA1 Message Date
github-actions[bot] 6e3f9dabc5 Bump version to v2.0.16 2024-12-05 13:17:01 +00:00
Alexander Meißner f8f3fe31d9
Feature - disable account loader special case (#3514)
Feature gate disable_account_loader_special_case.
2024-11-07 21:36:42 +01:00
github-actions[bot] 135742fe3c
Bump version to v2.0.15 (#3210)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-18 21:19:04 +08:00
mergify[bot] 8561902444
v2.0: Scheduler: Improve TTL (backport of #3161) (#3179)
* Scheduler: Improve TTL (#3161)

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
(cherry picked from commit 7b0a57316d)

# Conflicts:
#	accounts-db/src/accounts.rs
#	core/src/banking_stage/consumer.rs
#	core/src/banking_stage/immutable_deserialized_packet.rs
#	core/src/banking_stage/latest_unprocessed_votes.rs
#	core/src/banking_stage/transaction_scheduler/scheduler_controller.rs
#	runtime/src/bank/address_lookup_table.rs

* resolve conflicts

---------

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2024-10-17 12:52:12 -05:00
github-actions[bot] 0b643611ac
Bump version to v2.0.14 (#3056)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-03 10:58:03 -05:00
github-actions[bot] 1715788830
Bump version to v2.0.13 (#3048)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-02 22:49:41 +08:00
mergify[bot] 573db9c5d8
v2.0: banking_stage: do not insert legacy vote ixs, refactor & unstaked (backport of #2888) (#2901)
* banking_stage: do not insert legacy vote ixs, refactor & unstaked (#2888)

* banking_stage: do not insert legacy vote ixs, refactor & unstaked

* pr feedback: use matches instead of separate fn

(cherry picked from commit 1334fb5248)

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

* fix conflicts

* rekey feature to indicate it must not be activated

---------

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2024-09-30 19:31:55 -04:00
github-actions[bot] 3ade64bd13
Bump version to v2.0.12 (#3012)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-27 16:53:32 -05:00
github-actions[bot] 4255f52d4a
Bump version to v2.0.11 (#2942)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-25 14:08:51 -05:00
mergify[bot] 1b4dfb3a03
v2.0: extends Turbine fanout experiment to wider fanout values (backport of #2373) (#2450)
extends Turbine fanout experiment to wider fanout values (#2373)

Based on previous Turbine fanout experiment, wider fanouts are more
effective in propagating shreds and reducing repairs:
https://discord.com/channels/428295358100013066/478692221441409024/1265782094211321897

In order to identify optimal fanout value, this commit extends the
experiment with wider fanout values.

(cherry picked from commit 57144b0cea)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-09-10 14:39:26 +00:00
github-actions[bot] b55220fd88
Bump version to v2.0.10 (#2864)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-08 14:52:38 +08:00
mergify[bot] a829deae22
v2.0: SIMD-0118: fix `total_rewards` for recalculation (backport of #2780) (#2794)
* SIMD-0118: fix `total_rewards` for recalculation (#2780)

* Add new feature key

* Wrap existing code with new feature

* Extend test harness

* Make test fail

* Populate EpochRewards::total_rewards from PointValue

* Remove superfluous struct field

* Fixup tests

(cherry picked from commit 4470f6d96e)

# Conflicts:
#	programs/bpf_loader/src/syscalls/mod.rs
#	sdk/src/feature_set.rs

* Fix conflicts

---------

Co-authored-by: Tyera <tyera@anza.xyz>
2024-09-03 10:31:12 -06:00
github-actions[bot] ea2634f950
Bump version to v2.0.9 (#2804)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-31 11:46:28 +08:00
mergify[bot] 2088c5870c
v2.0: replay: extend last fec set check for 32+ retransmitter signed shreds (backport of #2101) (#2192)
replay: extend last fec set check for 32+ retransmitter signed shreds (#2101)

* replay: extend last fec set check for 32+ retransmitter signed shreds

* pr feedback: use separate feature flag

* pr feedback: is_retransmitter_signed -> is_retransmitter_signed_variant, false for legacy

* pr feedback: update doc comment fail -> error

* pr feedback: hash -> bank_hash for report metrics

* refactor metrics inside blockstore fn, return block_id for future use

* pr feedback: gate metrics reporting

* pr feedback: do not distinguish impossible combos, simplify check code

* pr feedback: remove report_metrics helper fn

* pr feedback: remove metric

* pr feedback: block_id -> last_fec_set_merkle_root

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
2024-08-28 00:24:08 -04:00
github-actions[bot] 5525ac06ff
Bump version to v2.0.8 (#2727)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-26 15:00:20 +08:00
github-actions[bot] a4f9b13ee2
Bump version to v2.0.7 (#2651)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-19 15:03:32 -06:00
mergify[bot] 54d08d739a
v2.0: adds feature-gate code to enforce retransmitter signature verification (backport of #1840) (#2415)
* adds feature-gate code to enforce retransmitter signature verification (#1840)

(cherry picked from commit 79cb077f10)

# Conflicts:
#	sdk/src/feature_set.rs

* resolves merge conflicts

---------

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-08-14 17:48:37 +00:00
mergify[bot] e86b3cdcfc
v2.0: fix: borrow stakes delegation during snapshot serialization (backport of #2455) (#2500) 2024-08-14 07:41:36 +08:00
github-actions[bot] 35389e67a9
Bump version to v2.0.6 (#2518)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-10 01:09:10 +08:00
mergify[bot] ea5a0d0678
v2.0: Bump platform tools version to v1.42 (backport of #2355) (#2461)
Bump platform tools version to v1.42 (#2355)

(cherry picked from commit fb80e48fb0)

Co-authored-by: Lucas Ste <38472950+LucasSte@users.noreply.github.com>
2024-08-08 14:28:53 -03:00
github-actions[bot] 505299413d
Bump version to v2.0.5 (#2419)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-03 15:04:53 +08:00
mergify[bot] 4f704d84b3
v2.0: [ed25519] Use `verify_strict` for signature verification in ed25519 precompile (backport of #1876) (#2179)
[ed25519] Use `verify_strict` for signature verification in ed25519 precompile (#1876)

* use `verify_strict` for signature verification in ed25519 precompile

* add test

* clippy

* increase ed25519 precompile cost constant by 5%

* put ed25519 strict verification cost change under feature gate

---------

Co-authored-by: Emanuele Cesena <ecesena@jumptrading.com>
(cherry picked from commit ddda6c30a3)

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
2024-08-02 10:30:50 +09:00
github-actions[bot] 9b4fcdcfa9
Bump version to v2.0.4 (#2223)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-23 13:52:06 +08:00
mergify[bot] 792c5d6fff
v2.0: stake-program: `MoveStake` and `MoveLamports` (backport of #1415) (#1928)
stake-program: `MoveStake` and `MoveLamports` (#1415)

implement two new instructions for moving delegated stake and undelegated lamports, respectively, between accounts with the same Authorized and Lockup using the Staker authority

(cherry picked from commit 361ade4439)

Co-authored-by: hana <81144685+2501babe@users.noreply.github.com>
2024-07-17 16:39:44 -07:00
github-actions[bot] 3e2d22e26a
Bump version to v2.0.3 (#2080)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-15 18:36:49 +08:00
mergify[bot] ec08d81213
v2.0: Remove deprecated symbols from recent_blockhashes_account (backport of #2004) (#2009)
Remove deprecated symbols from recent_blockhashes_account (#2004)

* Move recent_blockhashes_account to runtime

* Fixup imports

* Reduce pub

* Remove unused method

* Duplicate code to limit pub and dependency complexity

* Move test-only fn into tests module

(cherry picked from commit f77658b9e4)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-08 10:35:24 -06:00
mergify[bot] 3aee1eaf5e
v2.0: Remove deprecated CommitmentLevel variants (backport of #1903) (#1989)
Remove deprecated CommitmentLevel variants (#1903)

* Remove deprecated CommitmentLevel variants and CommitmentConfig methods

* Remove deprecated variants from BlockCommitmentCache usage

* Remove deprecated variants from rpc

* Remove maybe_map_commitment from RpcClient

(cherry picked from commit 2e3c2c78e9)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-08 10:34:13 -06:00
mergify[bot] 2e5f5d5b4d
v2.0: Remove deprecated address_lookup_table_account re-export (backport of #1972) (#1990)
* Remove deprecated address_lookup_table_account re-export (#1972)

* Remove deprecated re-export

* Remove deprecated stuff from example_mocks

* Remove deprecated programs/alt re-export

(cherry picked from commit f681fe87d5)

# Conflicts:
#	sdk/program/src/lib.rs

* Fix conflict

---------

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-03 18:38:30 +00:00
mergify[bot] 8ac1a4547b
v2.0: Handle deprecated Instructions sysvar methods (backport of #1959) (#1979)
* Handle deprecated Instructions sysvar methods (#1959)

* Remove deprecated legacy-message methods (deprecated in v1.9)

* Unpub deprecated method load_current_index; dedupe

* Unpub deprecated method load_instruction_at; dedupe

* Remove allow(deprecated) tags

* Make load_instruction_at available to benches

(cherry picked from commit adb9d9e3c9)

# Conflicts:
#	sdk/program/Cargo.toml
#	sdk/program/src/sysvar/instructions.rs

* Fix conflicts

---------

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-03 10:40:11 -06:00
mergify[bot] 262706a176
v2.0: Remove deprecated symbols from solana-program (backport of #1958) (#1977)
Remove deprecated symbols from solana-program (#1958)

* Remove SLOT_MS

* Remove deprecated Pubkey methods

* Remove deprecated info! macro

* Delete deprecated and dangling borsh 0.9 module

* Remove deprecated UpgradeableLoaderState methods

* Remove FeeCalculator deprecated method

* Remove deprecated Instruction ctor

* Remove deprecated legacy-message methods (deprecated in v1.9)

(cherry picked from commit 2f85940326)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-02 20:10:48 -06:00
mergify[bot] fdfa212664
v2.0: Remove deprecated symbols from solana-sdk (backport of #1953) (#1962)
Remove deprecated symbols from solana-sdk (#1953)

* Remove deprecated Account methods

* Remove deprecated info macro

* Remove deprecated Signature method

* Remove deprecated native_loader method

* Remove deprecated transaction method (deprecated in v1.9)

* Remove deprecated entrypoint definitions

* Remove deprecated program_stubs macro

(cherry picked from commit e2643f3dc7)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-02 16:18:26 -06:00
mergify[bot] 6d8549e3d6
v2.0: Remove deprecated SyncClient methods (backport of #1902) (#1909)
Remove deprecated SyncClient methods (#1902)

* Remove deprecated methods from SyncClient trait

* Add line to changelog

(cherry picked from commit 3d3faf5dee)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-06-28 16:34:51 -06:00
mergify[bot] c21767a8e1
v2.0: vote: remove deprecated ixs (backport of #1906) (#1917)
vote: remove deprecated ixs (#1906)

(cherry picked from commit e42e7fd692)

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
2024-06-28 14:33:11 -04:00
github-actions[bot] d6041c002b
Bump version to v2.0.2 (#1848)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-25 14:42:34 +08:00
github-actions[bot] 69c0b0edb6
Bump version to v2.0.1 (#1821)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 12:53:19 +08:00
Kevin Heavey 6cf32250ee
use bytemuck_derive 1.7.0 explicitly in sdk and program (#1793)
* use bytemuck_derive 1.7.0 explicitly in sdk and program

* explicitly activate the derive feature of bytemuck in zk-sdk
2024-06-20 09:42:37 +02:00
Kevin Heavey 2bdba73ee6
program: move itertools to dev-dependencies (#1782)
* port join from itertools and use it in program_stubs.rs

* move itertools to dev-dependencies of solana-program

* add comment to join fn

* more concise replacement for join fn

Co-authored-by: Jon C <me@jonc.dev>

* remove join fn

---------

Co-authored-by: Jon C <me@jonc.dev>
2024-06-19 23:08:19 +02:00
Kevin Heavey 25ec30452c
sdk: Only compile wasm-bindgen when target_arch = "wasm32" (#1658)
* move wasm-bindgen dep under cfg(target_arch = "wasm32") in sdk and program

* remove wasm_bindgen_stub (we don't need it where we're going)

* put wasm_bindgen usage behind #[cfg(target_arch = "wasm32")]

* remove doc comments from skippeed fields

* add missing attribute

* another missing attribute

* add doc comments explaining duplicated structs

* fmt

* fix wasm comments

* Update sdk/program/src/instruction.rs

---------

Co-authored-by: Jon C <me@jonc.dev>
2024-06-18 14:54:41 +02:00
samkim-crypto 563d1c04d6
[sdk] Add ZK Elgamal Proof program feature gate (#1679)
* add `zk-elgamal-proof-program-enabled` feature gate

* reserve account for zk elgamal proof program

* add zk elgamal proof as builtin program

* cargo lock

* cargo sort

* replace feature gate key to start with `zk..`

* add simd number

* update `elgamal_program` to `zk_elgamal_proof_program`
2024-06-18 11:34:34 +09:00
Kevin Heavey 988647d814
remove unused build dep `cc` from solana-program (#1659)
* remove unused build dep `cc` from solana-program

* remove cc from workspace
2024-06-17 08:13:54 -05:00
Kevin Heavey 7e0688341e
remove superfluous usage of allow(dead_code) (#1669) 2024-06-13 22:52:49 +08:00
Jon C 9be66e975e
sdk-macro: Move package_metadata macro to separate crate (#1713)
* sdk-macro: Move package_metadata macro to separate crate

* Update sbf lockfile

* Cargo fmt
2024-06-13 13:05:58 +02:00
Joe C a6035da45e
SDK: Slot Hashes: Add queries using `sol_get_sysvar` (#1622)
* sysvars: add `get_sysvar` handler

* sysvars: add `SlotHashesSysvar` trait

* use bytemuck slices for binary search

* refactor get_sysvar API

* add tests

* add pointer alignment check

* make the API a struct

* move allocation check

* use `PodSlotHash` for layout

* cleanup
2024-06-12 22:39:16 +00:00
Joe C 6357f4ee76
Feature-Gate: Migrate Address Lookup Table program to Core BPF (#1380)
feature-gate: migrate address lookup table to Core BPF
2024-06-12 16:09:07 -05:00
Jon C 67c4278706
program: Add "hmac" feature to libsecp256k1 for doctests (#1695)
program: Add "hmac" feature to libsecp256k1
2024-06-12 13:02:44 +02:00
Sean Young 873808cf21
Add option to record transactions to ledger-tool (#181) 2024-06-12 11:43:53 +01:00
Joe C b1508010c0
Syscall: `GetEpochStake` (#1152)
* SVM: add `get_vote_accounts` callback

* program-runtime: invoke context: add `vote_accounts`

* sdk: add feature gate for sol-get-epoch-stake

* syscall: get-epoch-stake

* syscall: get-epoch-stake: tests

* drop `get_compute_meter`

* refactor for total stake

* refactor API for total stake
2024-06-11 09:28:31 -05:00
Alexander Meißner e6902be43c
Refactor - Adds `StableVec::len()` (#1645)
Adds StableVec::len().
2024-06-11 10:20:38 +02:00
Ryo Onodera cd6825f2b6
Retire stable-rust clippy for still buggy redundant_clone (#1661)
* Retire stable-rust clippy for buggy redundant_clone

* Remove unused scripts/cargo-clippy-stable.sh

* Remove clippy-stable from .mergify.yml
2024-06-10 15:05:04 +09:00
Jon C 1756c61283
sdk: Remove borsh usage from Pubkey test (#1633) 2024-06-06 17:59:18 +00:00