forked from anza-xyz/agave
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to v2.0.5 #5
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get rid of const in tests Co-authored-by: HaoranYi <[email protected]>
* rpc: add tpu_forwards/tpu_forwards_quic to getClusterNodes * add tvu * order * add tpu_vote * add serve_repair * fix tests * fix name in tests * remove tvu / repair quic
* remove unused build dep `cc` from solana-program * remove cc from workspace
* Remove redundant Option return type from accountinfo_from_shared_account_data * Remove redundant Option return type from accountinfo_from_stored_account_meta
There are a handful of commands that specify AccountsDb config. To create consistency between all these commands and remove repeated code, build all of the arguments in a helper function that is passed to the relevant commands.
Add lamports burned to error log
Add log to unreachable macro
…-xyz#1654) Co-authored-by: Jon C <[email protected]>
…s for partitions (anza-xyz#1769) Simplify assertion that epoch contains enough slots for partitions
…a-xyz#1758) * docs: update ZK Token Proof program to ZK ElGamal Proof program * remove blank line at eof
* local program cache: add `modified_entries` field * use `modified_entries` for modified program cache * invoke context: make `program_cache_for_tx_batch` mutable * invoke context: unify local program cache instances * remove `find_program_in_cache` alias
* Add num_partitions field to Rewards proto definition * Add type to hold rewards plus num_partitions * Add Bank method to get rewards plus num_partitions for recording * Update Blockstore::write_rewards to use num_partitions * Update RewardsRecorderService to handle num_partitions * Populate num_partitions in ReplayStage::record_rewards * Write num_partitions to Bigtable * Reword KeyedRewardsAndNumPartitions method * Clone immediately * Determine epoch boundary by checking parent epoch * Rename UiConfirmedBlock field * nit: fix comment typo * Add test_get_rewards_and_partitions * Add pre-activation test * Add should_record unit test
* 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`
There are several arguments to control snapshot configuration in the various ledger-tool commands. The inclusion of args in each command is inconsistent, especially for commands outside of main.rs This change consolidates the snapshot related arguments into a single function to help create consistency and reduce duplicate code
…z#1673) AccountsBackgroundService performs several operations that can take a long time to complete and do not check the exit flag mid-operation. Thus, ledger-tool can get hung up for a while waiting for ABS to finish. However, many ledger-tool command do not ABS to have finished. So, return a handle to the ABS thread and allow the caller to decide whether to join ABS or not. As of right now, create-snapshot is the only command that requires ABS to have finished before continuing.
* extract curve25519 crate * remove obsolete comment * fix Cargo.toml files * fix imports * update lock file * remove unused deps from zk-token-sdk * fmt * add solana-curve25519 patch * add missing override to programs/sbf/Cargo.toml * copy over an allow() * move new crate to curves dir * use workspace version * add back missing dev dep * add missing dependencies to programs/sbf * fmt * move dep to the correct dependency table * remove #[cfg(not(target_os = "solana"))] above errors mod
Consider this scenario: - Program increases length of an account - Program start CPI and adds this account as a read-only account - In fn update_callee_account() we resize account, which may change the pointer - Once CPI finishes, the program continues and may read/write from the account. The mapping must be up-to-date else we use stale pointers. Note that we always call callee_account.set_data_length(), which may change the pointer. In testing I found that resizing a vector from 10240 down to 127 sometimes changes its pointer. So, always update the pointer.
* remove `ElGamalError` from curve25519 crate * add `ElGamalError` to zk-token-sdk
…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 <[email protected]>
… mentions (backport of anza-xyz#2155) (anza-xyz#2160) docs: Removes --halt-on-known-validators-accounts-hash-mismatch mentions (anza-xyz#2155) (cherry picked from commit 150f4d7) Co-authored-by: Brooks <[email protected]>
…2170) ci: update docs pipeline (anza-xyz#2162) Co-authored-by: yihau <[email protected]>
…match cli arg (backport of anza-xyz#2154) (anza-xyz#2157) Removes deprecated --halt-on-known-validators-accounts-hash-mismatch cli arg (anza-xyz#2154) (cherry picked from commit 4f228f4) Co-authored-by: Brooks <[email protected]>
…yz#2128) (anza-xyz#2152) validator cli: Clarifies snapshot intervals (anza-xyz#2128) (cherry picked from commit 4c7996c) Co-authored-by: Brooks <[email protected]>
… (anza-xyz#2214) ci: "Fix" the downstream anchor build (anza-xyz#2208) * ci: "Fix" the downstream anchor build * Force the CI run to happen (cherry picked from commit fe652ca) Co-authored-by: Jon C <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…2158) (anza-xyz#2178) geyser: add num_partitions to block info (anza-xyz#2158) * geyser: add num_partitions to block info * fix comment (cherry picked from commit d8791a6) Co-authored-by: Kirill Fomichev <[email protected]> Co-authored-by: Tyera <[email protected]>
Update index.md (anza-xyz#2242) (cherry picked from commit c3ea4e2) Co-authored-by: Rex St. John | Anza <[email protected]>
…a-xyz#2235) chore: bump openssl to 0.10.66 (anza-xyz#2228) (cherry picked from commit 02918b8) Co-authored-by: Yihau Chen <[email protected]>
) (anza-xyz#2336) changelog: Lists removed validator args (anza-xyz#2324) (cherry picked from commit 298eb42) Co-authored-by: Brooks <[email protected]>
anza-xyz#2335) ledger-tool: unify and colorize help (anza-xyz#2322) (cherry picked from commit 38458f4) Co-authored-by: Brooks <[email protected]>
…nza-xyz#2337) validator: unify and colorize help (anza-xyz#2323) (cherry picked from commit e05dbe7) Co-authored-by: Brooks <[email protected]>
…nza-xyz#2359) Refactor match and add test cases (anza-xyz#2357) (cherry picked from commit 9c0a927) Co-authored-by: Tyera <[email protected]>
…nza-xyz#2314) (anza-xyz#2343) ledger-tool: Set initial last full snapshot slot (anza-xyz#2314) (cherry picked from commit 75a640e) Co-authored-by: Brooks <[email protected]>
…5519 precompile (backport of anza-xyz#1876) (anza-xyz#2179) [ed25519] Use `verify_strict` for signature verification in ed25519 precompile (anza-xyz#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 <[email protected]> (cherry picked from commit ddda6c3) Co-authored-by: samkim-crypto <[email protected]>
…xyz#2319) Add removed line from PR1192 (anza-xyz#2249) * Add removed line from PR1192 * Test missing programs were loaded (cherry picked from commit b14f103) Co-authored-by: asolana <[email protected]>
…nza-xyz#2389) (anza-xyz#2407) rolls out chained Merkle shreds to ~5% of testnet (anza-xyz#2389) (cherry picked from commit a60fbc2) Co-authored-by: behzad nouri <[email protected]>
…port of anza-xyz#1735) (anza-xyz#2201) verifies retransmitter signature on chained Merkle shreds (anza-xyz#1735) (cherry picked from commit 6f94686) Co-authored-by: behzad nouri <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…-xyz#2458) * Cleanup PoH speed check logs and error The current logging and error message from the Poh speed check are confusing. If the node fails, the error message states that the node is too slow. But, the reported numbers are slot durations in nanoseconds where a slower node will have a larger number. Lastly, the reported numbers aren't labeled with a unit so it is hard to make sense of this without looking at the actual code. The check now computes and reports hashes per second. (cherry picked from commit ecc05c5) # Conflicts: # core/src/validator.rs * merge conflicts --------- Co-authored-by: steviez <[email protected]>
anza-xyz#2461) Bump platform tools version to v1.42 (anza-xyz#2355) (cherry picked from commit fb80e48) Co-authored-by: Lucas Ste <[email protected]>
Bump rbpf version to 0.8.4
Yiwen-Gao
approved these changes
Aug 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Summary of Changes
Updated Agave from v2.0.2 to v2.0.5
Fixes #