-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Comparing changes
Open a pull request
base repository: solana-labs/solana
base: v1.18.26
head repository: solana-labs/solana
compare: master
Commits on Jan 23, 2024
-
Fix epoch rewards partition-data program owner (#34913)
Fix account program owner
Tyera authoredJan 23, 2024 Loading Loading status checks…Configuration menu - View commit details
-
Copy full SHA for 7ebe0bc - Browse repository at this point
Copy the full SHA 7ebe0bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3303c25 - Browse repository at this point
Copy the full SHA 3303c25View commit details -
[TieredStorage] In-memory struct for writing OwnersBlock (#34853)
#### Problem To write the owners-block, it requires an in-memory struct that maintains a set of unique owner addresses while providing a look-up function to obtain the OwnerOffset with the specified owner address. #### Summary of Changes This PR adds OwnersTable, the in-memory struct that maintains a set of unique owner addresses while providing a look-up function to obtain the OwnerOffset with the specified owner address. #### Test Plan A new unit-test is added.
Configuration menu - View commit details
-
Copy full SHA for 1810fea - Browse repository at this point
Copy the full SHA 1810feaView commit details
Commits on Jan 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bfbe03a - Browse repository at this point
Copy the full SHA bfbe03aView commit details -
Introduce primitive threading in unified scheduler (#34676)
* Introduce primitive threading in unified scheduler * Make the internal struct ExecutedTask not pub * Improve wording a bit * Explain scheduler main loop's overhead sensitivity * Improve wording a bit * Define ChainedChannel{Sender, Receiver} wrappers * Clean up a bit * Use derivative to avoid manual Clone impl * Clarify comment * Remove extra whitespace in comment * Remove unneeded dyn trait for ChainedChannel * Remove the accumulator thread for now * Fix typo * Use unimplemented!() to convey intention better
Configuration menu - View commit details
-
Copy full SHA for bd10386 - Browse repository at this point
Copy the full SHA bd10386View commit details -
Support json parsing of epoch-rewards partition data sysvar accounts (#…
Tyera authoredJan 24, 2024 Loading Loading status checks…Configuration menu - View commit details
-
Copy full SHA for b9947bd - Browse repository at this point
Copy the full SHA b9947bdView commit details -
[zk-token-sdk] Use checked arithmetic when processing transfer amount (…
…#34130) * add `try_split_u64` * add `try_combine_lo_hi_u64` * add `try` variants of ciphertext arithmetic functions * use try functions in proof generaiton and verification logic * deprecate non-`try` functions * use try functions in proof generaiton and verification logic * Apply suggestions from code review Co-authored-by: Jon C <me@jonc.dev> * cargo fmt --------- Co-authored-by: Jon C <me@jonc.dev>
Configuration menu - View commit details
-
Copy full SHA for b11d41a - Browse repository at this point
Copy the full SHA b11d41aView commit details -
Refactor load_accounts to take a reference to a slice instead of vec (#…
…34919) This is in preparation for further refactoring of Bank::load_and_execute_transactions in a separate commit.
Configuration menu - View commit details
-
Copy full SHA for ef233ea - Browse repository at this point
Copy the full SHA ef233eaView commit details -
Add push_heaviest_fork and get_heaviest_fork. (#34892)
Add push_get_heaviest_fork and push_get_heaviest_fork.
Configuration menu - View commit details
-
Copy full SHA for 0d92254 - Browse repository at this point
Copy the full SHA 0d92254View commit details -
Refactor bank's load_and_execute_transaction (#34893)
* Refactor bank load_and_execute_transactions * Remove redundant clippy annotation * Report check time where it is done in load_and_execute_transactions
Configuration menu - View commit details
-
Copy full SHA for 662e77f - Browse repository at this point
Copy the full SHA 662e77fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5898b9a - Browse repository at this point
Copy the full SHA 5898b9aView commit details -
[clap-v3-utils] Add functions to parse directly from
SignerSource
(#……34678) * add `_from_source` function variants for signer, keypair, and pubkey * make `parse_signer_source` an associated function of `SignerSource` * refactor `SignerSource` into `input_parsers::signer` * make `_from_source` functions public * remove unnecessary import
Configuration menu - View commit details
-
Copy full SHA for 3004eaa - Browse repository at this point
Copy the full SHA 3004eaaView commit details -
Move EpochRewardsHasher to solana-sdk (#34934)
* Move EpochRewardsHasher to solana-sdk * Cargo.lock * Apparently we're allowing arithmetic_side_effects in all of runtime * Move allow stmt to block instead of module * Also allow in test mod
Tyera authoredJan 24, 2024 Loading Loading status checks…Configuration menu - View commit details
-
Copy full SHA for bbd1fd4 - Browse repository at this point
Copy the full SHA bbd1fd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62e7ebd - Browse repository at this point
Copy the full SHA 62e7ebdView commit details
Commits on Jan 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5b59930 - Browse repository at this point
Copy the full SHA 5b59930View commit details -
Configuration menu - View commit details
-
Copy full SHA for b04765f - Browse repository at this point
Copy the full SHA b04765fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b161f6c - Browse repository at this point
Copy the full SHA b161f6cView commit details -
build(deps): bump bytemuck from 1.14.0 to 1.14.1 (#34945)
* build(deps): bump bytemuck from 1.14.0 to 1.14.1 Bumps [bytemuck](https://github.com/Lokathor/bytemuck) from 1.14.0 to 1.14.1. - [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md) - [Commits](Lokathor/bytemuck@v1.14.0...v1.14.1) --- updated-dependencies: - dependency-name: bytemuck 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>
Configuration menu - View commit details
-
Copy full SHA for b18f738 - Browse repository at this point
Copy the full SHA b18f738View commit details -
solana-program: VoteState::deserialize() (#34829)
* implement a custom parser for `VoteState` which is usuable in a bpf context * derive or impl `Arbitrary` for `VoteStateVersions` and its component types, for test builds only
Configuration menu - View commit details
-
Copy full SHA for 0c2d9d2 - Browse repository at this point
Copy the full SHA 0c2d9d2View commit details -
Docs - for loaded_programs.rs (#34715)
Adds doc comments to loaded_programs.rs
Configuration menu - View commit details
-
Copy full SHA for 2c98399 - Browse repository at this point
Copy the full SHA 2c98399View commit details -
[TieredStorage] writing hot account blocks and index blocks (#34828)
#### Problem The implementation of write_accounts() for HotAccountStorage is missing. It consists of the writing of account blocks, index block, and owners block. #### Summary of Changes This PR completes part of the HotStorageWriter::write_accounts(). Specifically, it finishes the writing of account blocks and index block. #### Test Plan A new unit-test is added to verify the correctness of the work-in-progress HotStorageWriter::write_accounts().
Configuration menu - View commit details
-
Copy full SHA for 26d62b9 - Browse repository at this point
Copy the full SHA 26d62b9View commit details -
Use ThreadLocalMultiIterator for tests (#34947)
* Use ThreadLocalMultiIterator for tests * some validator config was not using default_for_test
Configuration menu - View commit details
-
Copy full SHA for 29737ab - Browse repository at this point
Copy the full SHA 29737abView commit details -
accounts-cluster-bench: Break early when a max-accounts limit is reac…
…hed (#34922) * Improve help text * Add max_accounts cli arg and halt loop accordingly * Log totals before max_account exit * Add test of early end on max_accounts * Add logging when account-creation loop breaks
Tyera authoredJan 25, 2024 Loading Loading status checks…Configuration menu - View commit details
-
Copy full SHA for 6c4746d - Browse repository at this point
Copy the full SHA 6c4746dView commit details -
Add rpc support for partitioned rewards (#34773)
* Check feature_set for enable_partitioned_epoch_reward * Keep common variable outside if case * Keep common early return out of if case, since the first_slot_in_epoch must exist for partiion PDA to exist * Get and parse epoch partition data PDA * Find partition index for all addresses * Pull relevant blocks and get rewards * Reuse ordering and reformatting * Remove feature deactivation from TestValidator * Restore rewards iteration in first block in epoch for feature case to catch Voting rewards * Add fn get_reward_map helper to dedupe code * No need to start 2nd get_block_with_limit call with first block again * Replace filter_map to parameterize RewardType filter expression * Weird thing to make clippy and compiler agree (rust-lang/rust-clippy#8098) * Use activated_slot to ensure the right approach for past rewards epochs
Tyera authoredJan 25, 2024 Loading Loading status checks…Configuration menu - View commit details
-
Copy full SHA for 22500c2 - Browse repository at this point
Copy the full SHA 22500c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e68ba5 - Browse repository at this point
Copy the full SHA 1e68ba5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e155d9c - Browse repository at this point
Copy the full SHA e155d9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e09524 - Browse repository at this point
Copy the full SHA 9e09524View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0d67d7 - Browse repository at this point
Copy the full SHA f0d67d7View commit details
Commits on Jan 26, 2024
-
[TieredStorage] Use RENT_EXEMPT_RENT_EPOCH in HotStorageWriter (#34950)
#### Problem In HotStorageWriter::write_accounts, it skips storing rent-epoch when the rent-epoch equals Epoch::MAX. While the value is correct, it is more suitable to use RENT_EXEMPT_RENT_EPOCH instead as the goal here is to save bytes for rent-exempt accounts. #### Summary of Changes Replace Epoch::MAX by RENT_EXEMPT_RENT_EPOCH when checking whether to skip storing rent-epoch in HotStorageWriter.
Configuration menu - View commit details
-
Copy full SHA for 51c0649 - Browse repository at this point
Copy the full SHA 51c0649View commit details -
ledger-tool: Minor cleanup on --ignore-ulimit-nofile-error flag (#34944)
This argument is a flag and doesn't take a value; however, it had the .value_name() modifier set with "FORMAT". This could be confusing so remove .value_name() and add .takes_value(false)
steviez authoredJan 26, 2024 Loading Loading status checks…Configuration menu - View commit details
-
Copy full SHA for 89fd6ac - Browse repository at this point
Copy the full SHA 89fd6acView commit details -
ledger-tool: Refactor accounts subcommand output code (#34915)
The accounts command currently dumps every single account in the AccountsDb. This is obviously a lot of output, so a previous change streamed the accounts instead of collecting and dumping at the end. The streaming approach is much more performant, but the implementation is non-trivial. This change - Moves the accounts output code to output.rs - Refactor the logic to several objects that implment the functionality - Adjust the json output to also include the summary This change lays the groundwork for cleanly adding several more flags that will allow for querying different subsets of accounts.
steviez authoredJan 26, 2024 Loading Loading status checks…Configuration menu - View commit details
-
Copy full SHA for 3add40f - Browse repository at this point
Copy the full SHA 3add40fView commit details -
build(deps): bump hidapi from 2.4.1 to 2.5.0 (#34965)
Bumps [hidapi](https://github.com/ruabmbua/hidapi-rs) from 2.4.1 to 2.5.0. - [Release notes](https://github.com/ruabmbua/hidapi-rs/releases) - [Commits](https://github.com/ruabmbua/hidapi-rs/commits) --- updated-dependencies: - dependency-name: hidapi dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 5da06c5 - Browse repository at this point
Copy the full SHA 5da06c5View commit details -
separate priority fee and transaction fee from fee calculation (#34757)
add function calculate_fee_details() that returns FeeDetails with base and priority fee separated
Configuration menu - View commit details
-
Copy full SHA for 5ecc47e - Browse repository at this point
Copy the full SHA 5ecc47eView commit details -
[TieredStorage] Write owners block for HotAccountStorage (#34927)
#### Problem So far the current HotStorageWriter::write_accounts() only writes accounts blocks and index block. #### Summary of Changes The PR further writes owners block in HotStorageWriter::write_accounts(). #### Test Plan Extended existing test for HotStorageWriter to cover the owners block.
Configuration menu - View commit details
-
Copy full SHA for 663a1bb - Browse repository at this point
Copy the full SHA 663a1bbView commit details -
gossip: notify state machine of duplicate proofs (#32963)
* gossip: notify state machine of duplicate proofs * Add feature flag for ingesting duplicate proofs from Gossip. * Use the Epoch the shred is in instead of the root bank epoch. * Fix unittest by activating the feature. * Add a test for feature disabled case. * EpochSchedule is now not copyable, clone it explicitly. * pr feedback: read epoch schedule on startup, add guard for ff recache * pr feedback: bank_forks lock, -cached_slots_in_epoch, init ff * pr feedback: bank.forks_try_read() -> read() * pr feedback: fix local-cluster setup * local-cluster: do not expose gossip internals, use retry mechanism instead * local-cluster: split out case 4b into separate test and ignore * pr feedback: avoid taking lock if ff is already found * pr feedback: do not cache ff epoch * pr feedback: bank_forks lock, revert to cached_slots_in_epoch * pr feedback: move local variable into helper function * pr feedback: use let else, remove epoch 0 hack --------- Co-authored-by: Wen <crocoxu@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 93271d9 - Browse repository at this point
Copy the full SHA 93271d9View commit details -
[TieredStorage] Avoid AccountHash copy in AccountMetaOptionalFields (#…
Configuration menu - View commit details
-
Copy full SHA for 7138f87 - Browse repository at this point
Copy the full SHA 7138f87View commit details -
[TieredStorage] Correct the HotStorage API for account_matches_owners (…
…#34967) #### Problem In HotStorageReader, the account_matches_owners takes &[&Pubkey] as the address candidates. However, it should be &[Pubkey] as defined in the accounts_file API. #### Summary of Changes Correct HotStorageReader::account_matches_owners() to take &[Pubkey] instead. #### Test Plan Existing unit-tests
Configuration menu - View commit details
-
Copy full SHA for 3380c14 - Browse repository at this point
Copy the full SHA 3380c14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0838909 - Browse repository at this point
Copy the full SHA 0838909View commit details -
Configuration menu - View commit details
-
Copy full SHA for c656ca6 - Browse repository at this point
Copy the full SHA c656ca6View commit details -
Skip creating reward partition account for `--partitioned-epoch-rewar…
…ds-force-enable-single-slot` (#34946) * skip creating reward partition account when we are testing agains mainnet * Update runtime/src/bank.rs Co-authored-by: Brooks <brooks@prumo.org> * Update runtime/src/bank.rs Co-authored-by: Brooks <brooks@prumo.org> * refactor bool logic for partition reward single slot enable * Update runtime/src/bank.rs Co-authored-by: Tyera <teulberg@gmail.com> * move force_partition_rewards check into data account create fn * share code --------- Co-authored-by: HaoranYi <haoran.yi@solana.com> Co-authored-by: Brooks <brooks@prumo.org> Co-authored-by: Tyera <teulberg@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8a0c91d - Browse repository at this point
Copy the full SHA 8a0c91dView commit details -
Remove unused get_append_vec_id function (#34949)
remove unused get_append_vec_id fn Co-authored-by: HaoranYi <haoran.yi@solana.com>
Configuration menu - View commit details
-
Copy full SHA for e38848e - Browse repository at this point
Copy the full SHA e38848eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d117d4 - Browse repository at this point
Copy the full SHA 0d117d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1260a9 - Browse repository at this point
Copy the full SHA e1260a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59c2f35 - Browse repository at this point
Copy the full SHA 59c2f35View commit details
Commits on Jan 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 02062a6 - Browse repository at this point
Copy the full SHA 02062a6View commit details -
adds feature to enable chained Merkle shreds (#34916)
During a cluster upgrade when only half of the cluster can ingest the new shred variant, sending shreds of the new variant can cause nodes to diverge. The commit adds a feature to enable chained Merkle shreds explicitly.
Configuration menu - View commit details
-
Copy full SHA for d4fdcd9 - Browse repository at this point
Copy the full SHA d4fdcd9View commit details -
adds chained_merkle_root to shredder arguments (#34952)
Working towards chaining Merkle root of erasure batches, the commit adds chained_merkle_root to shredder arguments.
Configuration menu - View commit details
-
Copy full SHA for 79bbe43 - Browse repository at this point
Copy the full SHA 79bbe43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2455dc1 - Browse repository at this point
Copy the full SHA 2455dc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c99427e - Browse repository at this point
Copy the full SHA c99427eView commit details
Commits on Jan 28, 2024
-
build(deps): bump chrono from 0.4.31 to 0.4.32 (#34898)
* build(deps): bump chrono from 0.4.31 to 0.4.32 Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.31 to 0.4.32. - [Release notes](https://github.com/chronotope/chrono/releases) - [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md) - [Commits](chronotope/chrono@v0.4.31...v0.4.32) --- updated-dependencies: - dependency-name: chrono 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>
Configuration menu - View commit details
-
Copy full SHA for 52d3c02 - Browse repository at this point
Copy the full SHA 52d3c02View commit details
There are no files selected for viewing
This file was deleted.
This file was deleted.