Commit Graph

24261 Commits

Author SHA1 Message Date
Jon Cinque a1d2d6f150
ci: Test anchor-spl during downstream build (#34368)
* ci: Test anchor-spl during downstream build

* Also test anchor-client

* Update scripts/build-downstream-anchor-projects.sh

Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>

* Specify features to use in build-sbf

---------

Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2023-12-09 01:50:24 +01:00
Tyera e8945d2ed5
tokens: fix url clap arg name (#34371)
Fix url clap arg name
2023-12-08 15:48:54 -07:00
bji 930ce1eb21
Add allow_commission_decrease_at_any_time feature which will allow (#33847)
* Add allow_commission_decrease_at_any_time feature which will allow
vote account commission to be lowered at any time during the epoch
regardless of the commission_updates_only_allowed_in_first_half_of_epoch
feature.  Fixes #33843.

SIMD: 0080

* Remove unused `feature_set` import

---------

Co-authored-by: Jon Cinque <me@jonc.dev>
2023-12-08 17:30:48 -05:00
Justin Starry 79739e1b78
Comment sysvar and builtin lists as deprecated and remove new keys (#34365) 2023-12-09 01:17:17 +08:00
HaoranYi c43edd2fef
use seqlock for AccountStorage count and status tracking (#34356)
use seqlock for appendvec count and status tracking

Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-12-08 08:49:54 -06:00
Jon Cinque cfb16ab76a
sdk: Upgrade to borsh 1.2.1 (#34355)
* sdk: Update to borsh 1, revert borsh 0.9 / 0.10

* Restore borsh 0.10 and 0.9 support

* Update sbf lockfile

* Add borsh 0.10 implementations for stake types

* Fix weirdness on whitespace

* Update to borsh 1.2.1

* Update changelog

* compute-budget: Move `pack` under dev-context-only-utils

* Revert test to use HashMap

* transaction-status: Add comment about borsh version
2023-12-08 13:18:10 +01:00
ryleung-solana 132c910f81
Quic update identity (#33865)
Update the Quic transport layer keypair and identity when the Validator's identity keypair is updated
2023-12-08 14:53:19 +08:00
norwnd 8c6239ce85
cli: (program/buffer deploy) introduce --fee-payer argument (#34341)
* cli: (program/buffer deploy) introduce --fee-payer argument

* rename param in do_process_program_upgrade

* revert tricky changes to minimum_balance parameter

---------

Co-authored-by: norwnd <norwnd>
2023-12-07 22:47:50 +01:00
norwnd 74c54a7856
docs: (cli) minor updates to deploy-a-program.md (#34307)
* docs: (cli) minor updates to deploy-a-program.md

* address review comments

* remove unnecessary impl details from the docs about deploy command upgrade flow

* clarify program redeploy section

---------

Co-authored-by: norwnd <norwnd>
2023-12-07 19:26:49 +01:00
Tao Zhu f6403e3595
generalize message type for runtime-transaction (#34276)
* generalize message type for runtime-transaction

* Trait bounds TransactionMeta traits implementation
2023-12-07 09:51:14 -06:00
acheron 46921b3135
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`
2023-12-07 16:04:04 +01:00
HaoranYi 9cb83069d8
fix typo in error message and code comments in transaction_context (#34339)
fix typo in error message and code comments

Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-12-07 08:32:06 -06:00
Jon Cinque ae7713177c
ci: Add downstream build for anchor (#34343)
* ci: Add downstream build for anchor

* Fixup for shellcheck and job title
2023-12-07 13:02:24 +01:00
Yihau Chen 6f2b3bbad3
ci: fix mergify regex (#34337) 2023-12-07 18:35:54 +08:00
Yihau Chen e96afe3959
ci: get macos clippy auto-merge check follow the triggering rules (#34336) 2023-12-07 18:35:42 +08:00
behzad nouri d5eee01950
adds feature gated code to drop legacy shreds (#34328) 2023-12-06 22:47:46 +00:00
samkim-crypto d21e7edd2b
[zk-token-sdk] Fix transfer with fee edge case error (#34314) 2023-12-07 06:46:57 +09:00
Alexander Meißner cf0c52c207
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().
2023-12-06 22:05:26 +01:00
behzad nouri b1c701e53b
patches slots_per_epoch vs last_slot ordering in shred_fetch_stage (#34338) 2023-12-06 20:47:53 +00:00
Brooks 61fa130175
Removes glob import of SnapshotKind (#34333) 2023-12-06 13:46:10 -05:00
Brooks b32903a534
Removes glob import of AccountsHashVerificationError (#34332) 2023-12-06 13:46:00 -05:00
Brooks 49ffe42661
Removes glob import of ApplyFeatureActivationsCaller (#34334) 2023-12-06 12:48:25 -05:00
Lucas Steuernagel 1877fdb273
Use BankForks on tests - Part 4 (#34271)
* Use BankForks on tests - Part 4

* Ensure the correct slot is set
2023-12-06 13:32:04 -03:00
Yihau Chen fa251768b3
ci: block auto-merge before SPL downstream tests are all green (#34326)
* ci: block auto-merge before all spl downstream tests are green

* follow Github Actions triggering rule
2023-12-06 13:39:28 +08:00
dependabot[bot] 821968d3d0
build(deps): bump openssl from 0.10.60 to 0.10.61 (#34315)
* build(deps): bump openssl from 0.10.60 to 0.10.61

Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.60 to 0.10.61.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.60...openssl-v0.10.61)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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>
2023-12-06 13:31:17 +08:00
Brooks 5c00a33252
Removes unnecessary #[allow(dead_code)] in tiered storage (#34320) 2023-12-06 00:23:01 +00:00
Alexander Meißner f70d5481bc
Fix - Uses `fetch_add()` to accumulate usage counters in `LoadedPrograms` (#34319)
Uses fetch_add() to accumulate usage counters.
2023-12-05 23:21:06 +01:00
Steven Luscher 70896b8999
Link to latest version of the off-chain message signing proposal in the docs (#34329) 2023-12-05 21:49:12 +00:00
Kirill Fomichev c82fc6c98e
geyser: allow custom name in config file (#33550)
Allow loading the plugin name from the json config file as opposed to use plugin.name which is called before config file is passed to it. Allowing different plugins using the same executable to use different names.
2023-12-05 12:07:02 -08:00
behzad nouri 03fbe083b8
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.
2023-12-05 18:29:36 +00:00
Yihau Chen bbb58c20d2
ci: block automerge until clippy (macos-latest) green (#34325) 2023-12-06 01:51:44 +08:00
Brooks 62681b1089
Removes unnecessary #[allow(dead_code)] in bucket map (#34323) 2023-12-05 16:41:32 +00:00
Brooks 20d33a5274
Removes unnecessary #[allow(dead_code)] in stake flags (#34322) 2023-12-05 16:12:22 +00:00
behzad nouri 2096626633
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.
2023-12-05 16:08:06 +00:00
Brooks c971ad2944
Removes unnecessary #[allow(dead_code)] in partitioned rewards (#34321) 2023-12-05 15:58:11 +00:00
Jeff Washington (jwash) 091fc820ba
ancient append vec append creates big enough ancient append vecs (#34154)
* ancient append vec append creates big enough ancient append vecs

* assert we write the correct # of bytes

* fix tests

* u64 align accounts bytes written

* fix build

* add tests

* we don't need to align the store to u64.

When we call `remaining_bytes` to calculate, for the last element, u64_align!(len) could be greater than capacity.  However, because saturate_sub is used, we still get the correct answer of 0. Therefore, no need to align the storage to u64.

* add comments

* add shink test for min_size

* remove dead code

* fix build

* reviews

* add test for squash ancient vec overflow too much to fit into ideal av

* add test for get_bytes on AccountToStore

* clippy

* modify test to assert 0 size of opposite

---------

Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-12-05 09:25:11 -06:00
norwnd f41badfc19
cli: (program) move buffer fetching/validation into separate fn (#34317)
* cli: (program) move buffer fetching/validation into separate fn

* error gracefully (don't panic)

---------

Co-authored-by: norwnd <norwnd>
2023-12-05 16:11:29 +01:00
norwnd 8d7e63d420
cli: (program) enhance test_cli_program_set_buffer_authority (#34316)
* cli: (program) enhance test_cli_program_set_buffer_authority

* actually use buffer identity keys as buffer authority in tests(since it's a common real-world usage pattern)

---------

Co-authored-by: norwnd <norwnd>
2023-12-05 13:51:46 +01:00
Andrew Fitzgerald d451675d50
TransactionScheduler: check transaction age and already processed during receive (#34253) 2023-12-04 14:41:05 -08:00
Brooks 2c033e05e5
Switches order of tiered storage footer size and version (#34310) 2023-12-04 14:23:56 -05:00
Brooks 4bba59f063
Rebuilds skipped rewrites when loading from a snapshot (#34280) 2023-12-04 14:23:15 -05:00
Brooks efaec08f88
Clones skipped rewrites instead of taking (#34311) 2023-12-04 12:49:05 -05:00
Brooks 8fbe033eac
Moves val into .extend() instead of &mut and .into_iter() (#34285) 2023-12-01 14:38:01 -05:00
steviez c9cb727b1f
Add additional context to ReplayStage log message (#34296)
The pre-existing message was somewhat vague, so give more details about the caller
2023-12-01 13:04:39 -06:00
Brooks 4f65f7dc8d
Sanitizes tiered storage footer after reading from disk (#34200) 2023-12-01 13:58:10 -05:00
Yueh-Hsuan Chiang fa0930f254
[TieredStorage] Allow HotStorage to handle more account data (#34155)
#### Problem
After we have defined AccountOffset to be u32, it means the address space within
one HotAccountsFile is up to 4GB.  However, since the Accounts Blocks in a
HotAccountsFile is 8-byte aligned, it has the opportunity to store more data by
internally multiplying the AccountOffset by 8.

#### Summary of Changes
This PR allows a HotAccountsFile to store up to 32GB accounts data by using
8 x AccountOffset as its actual offset.

#### Test Plan
Updated existing unit-tests.
2023-12-01 10:39:15 -08:00
Lucas Steuernagel b97b3dd4ab
Use BankForks on tests - Part 3 (#34248)
* Add BankForks to core tests

* Refactor functions under DCOU
2023-12-01 13:47:22 -03:00
Andrew Fitzgerald 2294801954
Do not derive Copy for EpochSchedule and Rent (#32767) 2023-12-01 07:57:25 -08:00
Tyera 68928bb7d6
solana-cli: format strings (#34288)
* Format strings in solana-cli

* Restore some wallet.rs strings that were better before

* Fixup vote.rs string

* Fixup stake.rs string

* Fixup program.rs strings

* Fixup some address_lookup_table.rs strings

* Fixup clap_app.rs string

* Clarify validator_info help

* Fixup cluster_query.rs
2023-12-01 09:00:14 +00:00
steviez 7c4e7230b0
ledger-tool: Run rustfmt with format_strings = true (#34284)
Long string literals can cause rustfmt to fail, which results in rustfmt
failing to format entire functions. There are several instances of this
in ledger-tool, so format these files with wrapped strings so that
formatting will apply to functions again.

Note that this PR was created by adding format_strings = true to
rustfmt.toml; however, this change does NOT persist that rule as the
rule would format the entire repo.
2023-12-01 02:50:18 -06:00