Commit Graph

26079 Commits

Author SHA1 Message Date
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
mergify[bot] 5a46b490c7
v2.0: Add since field to deprecation note (backport of #1905) (#1910)
Add since field to deprecation note (#1905)

Add  to deprecation note

(cherry picked from commit 70254b175e)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-06-28 16:26:19 +00:00
mergify[bot] a0934f5d15
v2.0: Avoid unneeded start_session() with cleanups (bp: #1815, #1861) (#1854)
* Avoid unneeded start_session() when spawning (#1815)

* Avoid unneeded start_session() when spawning

* Add comments

(cherry picked from commit 40a9851c82)

* Apply cosmetic changes to unified scheduler (#1861)

* Apply cosmetic changes to unified scheduler

* Use first instead of old-fashioned firstly

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>

---------

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>

---------

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2024-06-28 12:19:04 +09:00
mergify[bot] 51939d7562
v2.0: Add --block-verification-method=unified-scheduler for v2.0 changelog (backport of #1878) (#1879)
Add --block-verification-method=unified-scheduler for v2.0 changelog (#1878)

(cherry picked from commit 2b88299585)

# Conflicts:
#	CHANGELOG.md

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2024-06-28 09:15:53 +09:00
mergify[bot] 4d1256af3b
v2.0: Remove support for deprecated rpc endpoints (backport of #1809) (#1886)
* Remove support for deprecated rpc endpoints (#1809)

* Remove rpc_obsolete_v1_7

* Remove rpc_deprecated_v1_7

* Remove rpc_deprecated_v1_9

* Add CHANGELOG entry

* Add another CHANGELOG entry

(cherry picked from commit 83527d9577)

# Conflicts:
#	CHANGELOG.md

* Fix conflict

---------

Co-authored-by: Tyera <tyera@anza.xyz>
2024-06-27 13:51:48 -06:00
mergify[bot] b463b9255c
v2.0: Make unified scheduler opt-in for block verification (backport of #1668) (#1874)
Make unified scheduler opt-in for block verification (#1668)

* Enable unified scheduler for block verification

* Revert making unified scheduler enabled by default

(cherry picked from commit 40508cd03f)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2024-06-27 16:59:05 +09:00
mergify[bot] d40aa491a5
v2.0: Use num_partitions to find specific stake rewards in partitions (backport of #1677) (#1881)
Use num_partitions to find specific stake rewards in partitions (#1677)

* Add helper to find and filter rewards from a slot

* Check feature enabled for desired epoch

* Refactor existing rewards code to support vote-rewards after activation

* Append stake rewards from partitions

* Remove feature deactivation from TestValidator

* Improve comments

* Add comment about retaining feature activation slot logic

* Add custom error and use in getInflationReward

* Review nit

(cherry picked from commit 0496b06f89)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-06-26 19:54:52 -06:00
mergify[bot] 04bceed0c0
v2.0: spl: Upgrade all crates to v2-only versions (backport of #1872) (#1880)
spl: Upgrade all crates to v2-only versions (#1872)

(cherry picked from commit 6aee8454c0)

Co-authored-by: Jon C <me@jonc.dev>
2024-06-26 18:16:26 +02:00
mergify[bot] d4bd859389
v2.0: Add partitioned epoch rewards to changelog for v2.0 (backport of #1864) (#1868)
Add partitioned epoch rewards to changelog for v2.0 (#1864)

Add partitioned epoch rewards to changelog

(cherry picked from commit f0641effb5)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-06-26 10:15:55 -06: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
mergify[bot] d02dac6077
v2.0: chore: publish solana-tps-client (backport of #1845) (#1846)
chore: publish solana-tps-client (#1845)

(cherry picked from commit 7584773312)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-06-24 16:14:11 -05:00
mergify[bot] 811c87539b
v2.0: chore: remove publish=false from transaction-metrics-tracker/Cargo.toml (backport of #1828) (#1844)
chore: remove publish=false from transaction-metrics-tracker/Cargo.toml (#1828)

(cherry picked from commit ac63c0a78b)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-06-24 15:35:05 -05:00
mergify[bot] edca6057eb
v2.0: chore: add dcou to apply_votes_to_tower (backport of #1831) (#1843)
chore: add dcou to apply_votes_to_tower (#1831)

* add dcou to apply_votes_to_tower

* cargo sort

* fix fmt

(cherry picked from commit 66bdefd178)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-06-24 15:34:53 -05:00
Yihau Chen 9d7f0c148f
v2.0: add .github/CODEOWNERS (#1833) 2024-06-24 15:28:28 -05: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
Will Hickey 16de8b75eb
Update CHANGELOG.md in preparation for branching v2.0 (#1819) 2024-06-21 15:14:04 -05:00