Commit Graph

26094 Commits

Author SHA1 Message Date
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] c6b0570fff
v2.0: ci: "Fix" the downstream anchor build (backport of #2208) (#2214)
ci: "Fix" the downstream anchor build (#2208)

* ci: "Fix" the downstream anchor build

* Force the CI run to happen

(cherry picked from commit fe652ca59e)

Co-authored-by: Jon C <me@jonc.dev>
2024-07-19 22:19:03 +00:00
mergify[bot] bd5ee02f70
v2.0: validator cli: Clarifies snapshot intervals (backport of #2128) (#2152)
validator cli: Clarifies snapshot intervals (#2128)

(cherry picked from commit 4c7996c530)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-07-19 15:31:12 -04:00
mergify[bot] 749c1e8147
v2.0: Removes deprecated --halt-on-known-validators-accounts-hash-mismatch cli arg (backport of #2154) (#2157)
Removes deprecated --halt-on-known-validators-accounts-hash-mismatch cli arg (#2154)

(cherry picked from commit 4f228f4c3c)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-07-19 15:01:54 -04:00
mergify[bot] a9c5cbd743
v2.0: ci: update docs pipeline (backport of #2162) (#2170)
ci: update docs pipeline (#2162)

Co-authored-by: yihau <yihau.chen@icloud.com>
2024-07-19 21:49:20 +08:00
Yihau Chen 25117e4635
v2.0: fix solana-stake-program-tests version (#2180) 2024-07-18 15:14:18 -06:00
mergify[bot] 3c79b84c90
v2.0: docs: Removes --halt-on-known-validators-accounts-hash-mismatch mentions (backport of #2155) (#2160)
docs: Removes --halt-on-known-validators-accounts-hash-mismatch mentions (#2155)

(cherry picked from commit 150f4d7103)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-07-18 07:49:33 -04:00
mergify[bot] 362a79f91d
v2.0: docs: Move node hardware requirements to markdown table (backport of #1756) (#2070)
docs: Move node hardware requirements to markdown table (#1756)

(cherry picked from commit a8c328099e)

Co-authored-by: ferric <95399413+ferric-sol@users.noreply.github.com>
2024-07-18 13:55:23 +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
mergify[bot] b57b883355
v2.0: Fix BankForks::new_rw_arc memory leak (backport of #1893) (#2066)
* Fix BankForks::new_rw_arc memory leak (#1893)

(cherry picked from commit d441c0f577)

* Fix flaky test test_banking_stage_entries_only_central_scheduler (#2082)

---------

Co-authored-by: Andrei Silviu Dragnea <andreisilviudragnea@gmail.com>
Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2024-07-17 16:11:40 -07:00
mergify[bot] 1291c15762
v2.0: Removes deprecated --incremental-snapshots cli arg (backport of #2132) (#2148)
Removes deprecated --incremental-snapshots cli arg (#2132)

(cherry picked from commit 92a9a0e90f)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-07-17 18:56:41 -04:00
mergify[bot] 5d680fd1a2
v2.0: blockstore: only consume duplicate proofs from root_slot + 1 on startup (backport of #1971) (#2114)
blockstore: only consume duplicate proofs from root_slot + 1 on startup (#1971)

* blockstore: only consume duplicate proofs from root_slot + 1 on startup

* pr feedback: update test comments

* pr feedback: add pub behind dcou for test fns

(cherry picked from commit 2a48564b59)

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
2024-07-16 21:02:23 -04:00
mergify[bot] 42dad6a409
v2.0: Update EpochRewards in sysvars doc (backport of #2102) (#2150)
Update EpochRewards in sysvars doc (#2102)

Update sysvars doc

(cherry picked from commit 147c97d4e6)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-16 15:53:32 -06: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] b5bc3b2381
v2.0: Remove deprecated Memcmp filter symbols (backport of #2050) (#2069)
Remove deprecated Memcmp filter symbols (#2050)

* Add test to demonstrate serialization and acceptable json inputs

* Remove custom serialization

* Unpub deprecated fields

* Remove deprecated, unused field

* Remove deprecated MemcmpEncodedBytes variant

* Remove deprecated error variants

* Add back custom deserialization to support missing 'encoding' field

* Update tests to demonstrate consistency and changes

* Add helper fns to use in rpc spl-token filter checks

* Update base64 syntax and remove allow-deprecated

(cherry picked from commit 3b3ffbb6c9)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-10 07:20:45 +00:00
mergify[bot] 8c20f0b280
v2.0: Remove rpc- and pubsub-client version querying (backport of #2045) (#2052)
Remove rpc- and pubsub-client version querying (#2045)

* Remove filter mapping

* Remove unused internal module

* Remove unused pubsub-client stuff

* Remove unused RpcClient encoding maping, node_version

(cherry picked from commit 69d2eb8da8)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-10 03:07:07 +00:00
mergify[bot] 287bb22f45
v2.0: Removes unused deprecated cli args (backport of #2058) (#2063)
Removes unused deprecated cli args (#2058)

(cherry picked from commit 05134bed3b)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-07-09 16:31:36 -04:00
mergify[bot] 7c7dd4988d
v2.0: Update install docs to agave (backport of #2060) (#2061)
Update install docs to agave (#2060)

* s/SOLANA/AGAVE

* s/solana.com/anza.xyz

(cherry picked from commit b1bb9ff576)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-10 01:40:21 +08:00
mergify[bot] f653d86e23
v2.0: Remove get_stake_activation methods from RpcClient (backport of #2036) (#2044)
Remove get_stake_activation methods from RpcClient (#2036)

* Remove dangling JsonRpcRequestProcessor method

* Remove get_stake_activation methods from RpcClient

* Remove getStakeActivation from mock_sender

* Remove unused rpc response type

(cherry picked from commit 30791818e0)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-08 18:14:36 -06:00
mergify[bot] e24b410429
v2.0: Clean up disable_fees_sysvar feature (backport of #2003) (#2043)
Clean up disable_fees_sysvar feature (#2003)

* Clean up disable_fees_sysvar

* Remove bank fees test

* Remove unused rpc response types

* Fixup sysvar_cache tests

* Remove fees-sysvar from bootstrap_validator_stake_lamports; no longer included

* Update account counts, since fees no longer touched

* Update bank hashes in test, since fees sysvar is not populated

* Remove test case passing fees sysvar as account

(cherry picked from commit 1c34908d03)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-08 18:14:05 -06:00
mergify[bot] 682a50fb07
v2.0: Update changlog re: removal of deprecated symbols (backport of #2006) (#2042)
Update changlog re: removal of deprecated symbols (#2006)

* Format SDK changes as bulleted list, and make deprecation removal generic

* Add changelog line for solana-program

* Add line for solana-client

* Update CHANGELOG.md

(cherry picked from commit b61ce735ea)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-08 18:13:38 -06:00
mergify[bot] 9a9cb755cd
v2.0: Remove deprecated symbols from solana-client (mostly re-exports) (backport of #1992) (#2041)
Remove deprecated symbols from solana-client (mostly re-exports) (#1992)

* Remove usage of deprecated re-export from SendTransactionService

* Remove usage of deprecated re-export from core

* Remove usage of deprecated re-export from solana-dos

* Remove deprecated ConnectionCache methods

* Remove deprecated udp_client re-export

* Remove deprecated tpu_connection re-export

* Remove deprecated quic_client re-export

(cherry picked from commit 3cd7621a81)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-08 18:13:15 -06:00
mergify[bot] 0b2e904852
v2.0: Deprecate RpcRequest::GetStakeActivation (backport of #2005) (#2013)
Deprecate RpcRequest::GetStakeActivation (#2005)

* Correct deprecation note

* Deprecate rpc-client-api request

(cherry picked from commit 0deb6fb3f2)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-08 10:36:06 -06:00
mergify[bot] d448fb2dc2
v2.0: Remove rpc methods from mock sender (backport of #1996) (#2008)
Remove rpc methods from mock sender (#1996)

Remove deleted RPC methods from mock_sender

(cherry picked from commit 27988e791f)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-08 10:35:46 -06: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] bdf39e85c1
v2.0: [zk-token-sdk] Specify version in deprecations in `zk-token-sdk` (backport of #2011) (#2014) 2024-07-08 20:55:59 +09:00
mergify[bot] 50f12b0040
v2.0: Use node's latest vote for commitment calc. too (backport of #1964) (#1994)
Use node's latest vote for commitment calc. too (#1964)

* Use node's latest vote for commitment calc. too

* Make local_cluster test use finalized

* Update core/src/commitment_service.rs

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

* Don't wrap with Option and update tests

---------

Co-authored-by: Tyera Eulberg <tyera@anza.xyz>
Co-authored-by: Tyera <teulberg@gmail.com>
(cherry picked from commit 556298982a)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2024-07-04 00:33:22 -06:00
mergify[bot] 96fe61ad79
v2.0: Remove assorted deprecated symbols (backport of #1995) (#2002)
* Remove assorted deprecated symbols (#1995)

* Remove deprecated method from program-test

* Remove deprecated programs stuff from TestValidator

* Remove deprecated method from TestValidator (deprecated in v1.11.0)

* Remove deprecated re-export from cluster_info

(cherry picked from commit efdbdc00ce)

# Conflicts:
#	gossip/src/cluster_info.rs

* Fix conflict

---------

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-04 00:29:49 -06:00
mergify[bot] cb27c2341c
v2.0: Add suggestion to deprecation message (backport of #1993) (#2000)
Add suggestion to deprecation message (#1993)

(cherry picked from commit c848645aba)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-04 00:29:10 -06:00
mergify[bot] c09226c818
v2.0: Bump ThinClient since version (backport of #1991) (#2001)
Bump ThinClient since version (#1991)

(cherry picked from commit 1063be7f1b)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-04 00:28:09 -06:00
mergify[bot] 0001afe8ed
v2.0: Refactor cost tracking (backport of #1954) (#1975)
* Refactor cost tracking (#1954)

* Refactor and additional metrics for cost tracking (#1888)

* Refactor and add metrics:
- Combine remove_* and update_* functions to reduce locking on cost-tracker and iteration.
- Add method to calculate executed transaction cost by directly using actual execution cost and loaded accounts size;
- Wireup histogram to report loaded accounts size;
- Report time of block limits checking;
- Move account counters from ExecuteDetailsTimings to ExecuteAccountsDetails;

* Move committed transactions adjustment into its own function

* remove histogram for loaded accounts size due to performance impact

(cherry picked from commit f8630a3522)

* rename cost_tracker.account_data_size to better describe its purpose is to tracker per-block new account allocation

---------

Co-authored-by: Tao Zhu <82401714+tao-stones@users.noreply.github.com>
Co-authored-by: Tao Zhu <tao@solana.com>
2024-07-03 14:59:02 -05:00
mergify[bot] 5d106ec0b1
v2.0: Remove deprecated, unused methods from Bank (backport of #1980) (#1988)
Remove deprecated, unused methods from Bank (#1980)

Remove deprecated methods from Bank (not in use)

(cherry picked from commit 0313047046)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-03 19:33:57 +00: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] b939e17bfa
v2.0: Remove deprecated spl-token conversion methods (backport of #1955) (#1978)
Remove deprecated spl-token conversion methods (#1955)

(cherry picked from commit 58027a38ba)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-02 20:10:24 -06:00
mergify[bot] 764596ccb3
v2.0: Remove deprecated BanksClient methods and dependent ProgramTest methods (backport of #1956) (#1963)
Remove deprecated BanksClient methods and dependent ProgramTest methods (#1956)

* Remove deprecated Banks client/interface methods

* Remove dependent deprecated program-test methods

(cherry picked from commit 6e4e82eb2a)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-02 16:18:42 -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] c18c8f72d3
v2.0: ci: skip spl test when version is too high (backport of #1945) (#1961)
ci: skip spl test when version is too high (#1945)

(cherry picked from commit 4d9d27f1ff)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-07-02 14:42:25 -05:00
mergify[bot] 5b9c5b965c
v2.0: gossip: do not allow duplicate proofs for incorrect shred versions (backport of #1931) (#1941)
gossip: do not allow duplicate proofs for incorrect shred versions (#1931)

* gossip: do not allow duplicate proofs for incorrect shred versions

* pr feedback: refactor test function to take shred_version

(cherry picked from commit 69ea21e947)

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
2024-07-02 09:28:21 -04:00
mergify[bot] 9fd1572e61
v2.0: Remove deprecated_config module (backport of #1951) (#1957)
Remove deprecated_config module (#1951)

(cherry picked from commit 00ee0acba3)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-01 23:59:29 -06:00
mergify[bot] c5ac54bb28
v2.0: Remove rpc endpoint deprecated in v1.18 (backport of #1897) (#1926)
Remove rpc endpoint deprecated in v1.18 (#1897)

* Remove rpc_deprecated_v1_18

* Update changelog

* Fixup redelegation test

(cherry picked from commit 99b2d5ad60)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-01 12:36:42 -06:00
mergify[bot] eaa3a811a3
v2.0: Deprecate RpcClient::get_stake_activation (backport of #1895) (#1925)
Deprecate RpcClient::get_stake_activation (#1895)

* Deprecate RpcClient::get_stake_activation

* Fixup redelegation test

(cherry picked from commit 114041c46a)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-01 10:56:06 -06:00
mergify[bot] c14fab08c8
v2.0: Remove deprecated RpcClient methods (backport of #1899) (#1922)
Remove deprecated RpcClient methods (#1899)

* Remove deprecated RpcClient methods corresponding to #1809

* Remove internal handling for pre-v1.9.0 servers

* Remove unused import of deprecated_config module

* Remove request mapping (pre-v1.7.0)

* Remove dangling allow-deprecated tag

* Add line to changelog

* Remove deprecated RpcRequest variants

* Remove reprecated rpc-client-nonce-utils methods

* Remove deprecated TestValidator method

* Remove deprecated solana fees command

(cherry picked from commit 51af772e63)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-01 10:55:39 -06:00
Tao Zhu f8ae688668
Revert "v2.0: Refactor and additional metrics for cost tracking (backport of #1888) (#1900) (#1937)
Revert "v2.0: Refactor and additional metrics for cost tracking (backport of #1888) (#1900)"

This reverts commit 0aef62eac7.
2024-07-01 10:33:44 -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] 0aef62eac7
v2.0: Refactor and additional metrics for cost tracking (backport of #1888) (#1900)
* Refactor and additional metrics for cost tracking (#1888)

* Refactor and add metrics:
- Combine remove_* and update_* functions to reduce locking on cost-tracker and iteration.
- Add method to calculate executed transaction cost by directly using actual execution cost and loaded accounts size;
- Wireup histogram to report loaded accounts size;
- Report time of block limits checking;
- Move account counters from ExecuteDetailsTimings to ExecuteAccountsDetails;

* Move committed transactions adjustment into its own function

(cherry picked from commit c3fadacf69)

* rename cost_tracker.account_data_size to better describe its purpose is to tracker per-block new account allocation

---------

Co-authored-by: Tao Zhu <82401714+tao-stones@users.noreply.github.com>
Co-authored-by: Tao Zhu <tao@solana.com>
2024-06-28 16:09:36 -05:00
mergify[bot] 54d4f7d13f
v2.0: Deprecate --rocksdb-shred-compaction fifo (backport of #1882) (#1907)
Deprecate --rocksdb-shred-compaction fifo (#1882)

The fifo compaction option was originally added to mitigate write
stalls that were occurring with level compaction. Since fifo was
introduced, the level compaction implementation has been optimized
to reduce I/O amplification. With these improvements, level and fifo
are comparable and sticking with level only simplifies things.

For now, only a deprecation warning will be printed. In the next
release branch (2.1.0), specifying fifo will be an error

(cherry picked from commit e15e235ec4)

Co-authored-by: steviez <steven@anza.xyz>
2024-06-28 14:44:44 -05: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