Skip to content
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 154 commits into from
Aug 14, 2024
Merged

update to v2.0.5 #5

merged 154 commits into from
Aug 14, 2024

Conversation

DudessaPr
Copy link

@DudessaPr DudessaPr commented Aug 14, 2024

Problem

Summary of Changes

Updated Agave from v2.0.2 to v2.0.5

Fixes #

godmodegalactus and others added 30 commits June 14, 2024 08:27
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.
…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
)

* send actual gossip ip:port when running solana-gossip rpc-url

* refactor gossip_addr out from spy and rpc methods
* 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]>
mergify bot and others added 27 commits July 18, 2024 07:49
… 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]>
…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]>
@DudessaPr DudessaPr changed the title Agave sync update to v2.0.5 Aug 14, 2024
@DudessaPr DudessaPr merged commit 45fa1ad into feat/risc0 Aug 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.