Commit Graph

26078 Commits

Author SHA1 Message Date
github-actions[bot] 6e3f9dabc5 Bump version to v2.0.16 2024-12-05 13:17:01 +00:00
Alexander Meißner f8f3fe31d9
Feature - disable account loader special case (#3514)
Feature gate disable_account_loader_special_case.
2024-11-07 21:36:42 +01:00
mergify[bot] 0348991a2c
v2.0: Store epoch in MaxAge (backport of #3485) (#3501)
* Store epoch in MaxAge (#3485)

(cherry picked from commit 5a6f518c6018ab0ebd101777045c5a1470cde5db)

# Conflicts:
#	core/src/banking_stage/consumer.rs
#	core/src/banking_stage/scheduler_messages.rs
#	core/src/banking_stage/transaction_scheduler/transaction_state.rs
#	core/src/banking_stage/transaction_scheduler/transaction_state_container.rs

* resolve conflicts

---------

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2024-11-07 09:01:18 -06:00
mergify[bot] e1b66ab4f0
v2.0: Revert "rolls back chained Merkle shreds for testnet downgrade (#3194)" (backport of #3503) (#3504)
Revert "rolls back chained Merkle shreds for testnet downgrade (#3194)" (#3503)

This reverts commit 69916f1077.

(cherry picked from commit db4f2d651683262eb133a4c1802876904e4fc130)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-11-07 13:33:39 +00:00
Alexander Meißner 204d282e44
Revert - #879 and #768 (#3511)
* Revert "Cleanup - Removes the owner form the result of `filter_executable_program_accounts()` (#879)"

This reverts commit 5fe30cb788.

* Revert "Refactor - Remove `program_accounts_map` from account_loader (#768)"

This reverts commit e7617a1b1f.
2024-11-07 11:32:44 +01:00
Jon C 6f2b6f2471
CI: Pin downstream SPL job to v2.0 branch (#3384)
CI: Pin downstrem SPL job to v2.0 branch

##### Problem

SPL is about to update to use the v2.1 crates, which will cause the
downstream jobs to fail for branch v2.0.

#### Summary of changes

Checkout the `v2.0` branch from the SPL repo for the downstream tests.
2024-10-30 18:16:48 +00:00
Will Hickey 7feb24da35
Pin SPL Token CLI version to v4.1.1 (#3344) 2024-10-30 22:13:17 +08:00
mergify[bot] 6d74d13749
v2.0: runtime: use leader schedule epoch to serve `sol_get_epoch_stake` (backport of #3279) (#3312)
runtime: use leader schedule epoch to serve `sol_get_epoch_stake` (#3279)

Co-authored-by: Joe Caulfield <joe.caulfield@anza.xyz>
2024-10-29 10:36:11 +04:00
mergify[bot] 2788c950aa
v2.0: ci: remove deprecated macos-12 image (backport of #3202) (#3207)
ci: remove deprecated macos-12 image (#3202)

ci: use macos-13 for client_targets pipeline
(cherry picked from commit c6e8239843)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-10-24 17:09:18 +08:00
mergify[bot] aa44dc87c5
v2.0: Update latest release variable for agave docs (backport of #3220) (#3221)
Update latest release variable for agave docs (#3220)

Update latest release variable for agave

(cherry picked from commit df97398f0d)

Co-authored-by: Will Hickey <will.hickey@anza.xyz>
2024-10-21 09:53:54 -05:00
github-actions[bot] 135742fe3c
Bump version to v2.0.15 (#3210)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-18 21:19:04 +08:00
mergify[bot] 8561902444
v2.0: Scheduler: Improve TTL (backport of #3161) (#3179)
* Scheduler: Improve TTL (#3161)

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
(cherry picked from commit 7b0a57316d)

# Conflicts:
#	accounts-db/src/accounts.rs
#	core/src/banking_stage/consumer.rs
#	core/src/banking_stage/immutable_deserialized_packet.rs
#	core/src/banking_stage/latest_unprocessed_votes.rs
#	core/src/banking_stage/transaction_scheduler/scheduler_controller.rs
#	runtime/src/bank/address_lookup_table.rs

* resolve conflicts

---------

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2024-10-17 12:52:12 -05:00
mergify[bot] 192460ba9e
v2.0: rolls back chained Merkle shreds for testnet downgrade (backport of #3194) (#3195)
rolls back chained Merkle shreds for testnet downgrade (#3194)

(cherry picked from commit 69916f1077)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-10-16 16:44:14 +00:00
mergify[bot] 654cf17c68
v2.0: ledger-tool: Fix create-snapshot default value for output_directory (backport of #3148) (#3153)
ledger-tool: Fix create-snapshot default value for output_directory (#3148)

The arguments to specify full and incremental snapshot archives paths
used to be a global argument; these were moved to only be instantiated
on commands that needed them in #1773.

But, when the arguments were moved from app-level to subcommand-level,
the code that matches the arguments was not updated to look at
subcommand-matches instead of app-matches.

(cherry picked from commit 1d9947cd68)

Co-authored-by: steviez <steven@anza.xyz>
2024-10-15 10:41:18 -10:00
mergify[bot] b271f1ffbf
v2.0: token-2022: Use mainnet-beta binary in all tools (backport of #3165) (#3166)
token-2022: Use mainnet-beta binary in all tools (#3165)

#### Problem

The binary of token-2022 bundled in program-test and fetch-spl.sh is
very out of date with what's currently running on mainnet.

#### Summary of changes

Update the shared object and version to fetch.

(cherry picked from commit 96955661f7)

Co-authored-by: Jon C <me@jonc.dev>
2024-10-15 18:52:21 +02:00
mergify[bot] c70d9d3f31
v2.0: link openssl statically for Windows (backport of #3118) (#3156)
link openssl statically for Windows (#3118)

* ci: fix windows pipeline

* vendor openssl for windows

* add comment for the workaround

(cherry picked from commit 49d2298762)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-10-15 13:15:34 +08:00
github-actions[bot] 0b643611ac
Bump version to v2.0.14 (#3056)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-03 10:58:03 -05:00
Yihau Chen 4cc7b90484
v2.0: ignore tonic audit report (#3051)
* fix audit

* add more comment
2024-10-02 23:56:43 +08:00
github-actions[bot] 1715788830
Bump version to v2.0.13 (#3048)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-02 22:49:41 +08:00
mergify[bot] 65233160c4
v2.0: increase writeable accounts cost hashmap size (backport of #3009) (#3019)
increase writeable accounts cost hashmap size (#3009)

(cherry picked from commit 9f822c2f2c)

Co-authored-by: Brennan <brennan.watt@anza.xyz>
2024-10-01 10:49:23 -07:00
mergify[bot] 4f423a512a
v2.0: reworks max number of outgoing push messages (backport of #3016) (#3038)
reworks max number of outgoing push messages (#3016)

max_bytes for outgoing push messages is pretty outdated and does not
allow gossip to function properly with current testnet cluster size.

In particular it does not allow to clear out queue of pending push
messages unless the new_push_messages function is called very frequently
which involves repeatedly locking/unlocking CRDS table.

Additionally leaving gossip entries in the queue for the next round will
add delay to propagating push messages which can compound as messages go
through several hops.

(cherry picked from commit 489f483e1d)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-10-01 01:01:37 +00:00
mergify[bot] 573db9c5d8
v2.0: banking_stage: do not insert legacy vote ixs, refactor & unstaked (backport of #2888) (#2901)
* banking_stage: do not insert legacy vote ixs, refactor & unstaked (#2888)

* banking_stage: do not insert legacy vote ixs, refactor & unstaked

* pr feedback: use matches instead of separate fn

(cherry picked from commit 1334fb5248)

# Conflicts:
#	core/src/banking_stage/latest_unprocessed_votes.rs

* fix conflicts

* rekey feature to indicate it must not be activated

---------

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2024-09-30 19:31:55 -04:00
mergify[bot] 246fe45d49
v2.0: removes early return if prune_messages are empty (backport of #3006) (#3011)
removes early return if prune_messages are empty (#3006)

Even if there are no outgoing prune messages we still need to generate
outgoing push messages for packets just received, so the code should not
early return here:
https://github.com/anza-xyz/agave/blob/d2cc71f0d/gossip/src/cluster_info.rs#L2400-L2402

(cherry picked from commit ce158213fd)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-09-30 20:36:04 +00:00
mergify[bot] 3aa2c0a6ef
v2.0: excludes node's pubkey from bloom filter of pruned origins (backport of #2990) (#3015)
excludes node's pubkey from bloom filter of pruned origins (#2990)

Bloom filter of pruned origins can return false positive for a node's
own pubkey but a node should always be able to push its own values to
other nodes in the cluster.

(cherry picked from commit bce28c0282)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-09-30 15:17:25 +00:00
Yihau Chen 0ab59bff26
v2.0: ci: increase timeout for check3 (#3017) 2024-09-28 10:05:04 -05:00
github-actions[bot] 3ade64bd13
Bump version to v2.0.12 (#3012)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-27 16:53:32 -05:00
mergify[bot] d868218e08
v2.0: Fix: Corrected the derivation command format (backport of #2952) (#3005)
Fix: Corrected the derivation command format (#2952)

(cherry picked from commit d2cc71f0d4)

Co-authored-by: Asten <dandelionlion@protonmail.com>
2024-09-27 11:59:00 -05:00
mergify[bot] 77ed6dbe84
v2.0: rolls out chained Merkle shreds to 100% of testnet slots (backport of #2858) (#2995)
rolls out chained Merkle shreds to 100% of testnet slots (#2858)

(cherry picked from commit a15fef1b26)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-09-27 14:13:49 +00:00
mergify[bot] 9e90b001e9
v2.0: fix: set allocation size to 0 for transactions known to fail (backport of #2966) (#2989)
fix: set allocation size to 0 for transactions known to fail (#2966)

(cherry picked from commit 443246dee0)

Co-authored-by: Justin Starry <justin@anza.xyz>
2024-09-27 14:20:12 +08:00
github-actions[bot] 4255f52d4a
Bump version to v2.0.11 (#2942)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-25 14:08:51 -05:00
mergify[bot] 57227ea058
v2.0: Publish Agave docs (backport of #2887) (#2899)
Publish Agave docs (#2887)

* Add publish-docs.sh to build.sh

* Add debugging echos

* Fake being in CI

* Update vercel doc project names

* Remove debugging echos. Remove CI var.

(cherry picked from commit 383b49fdc8)

Co-authored-by: Will Hickey <will.hickey@anza.xyz>
2024-09-18 21:31:11 -05:00
mergify[bot] 1b5c6140e2
v2.0: remove disable_block_production_forwarding cli flag (backport of #2687) (#2909)
remove disable_block_production_forwarding cli flag (#2687)

(cherry picked from commit df892c4241)

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2024-09-12 12:33:40 -05:00
mergify[bot] c01560e136
v2.0: scheduler opt-in forwarding (backport of #1801) (#2285)
* scheduler opt-in forwarding (#1801)

(cherry picked from commit 61d8be0d6f)

* Scheduler: buffer packets for forwarding if forwarding is enabled (#2305)

---------

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2024-09-12 10:43:21 -05:00
mergify[bot] 1b4dfb3a03
v2.0: extends Turbine fanout experiment to wider fanout values (backport of #2373) (#2450)
extends Turbine fanout experiment to wider fanout values (#2373)

Based on previous Turbine fanout experiment, wider fanouts are more
effective in propagating shreds and reducing repairs:
https://discord.com/channels/428295358100013066/478692221441409024/1265782094211321897

In order to identify optimal fanout value, this commit extends the
experiment with wider fanout values.

(cherry picked from commit 57144b0cea)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-09-10 14:39:26 +00:00
mergify[bot] 81c310a28a
v2.0: Remove explicit stream finish (backport of #2760) (#2766)
Remove explicit stream finish (#2760)

(cherry picked from commit 61d6a22a47)

Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com>
2024-09-08 22:53:43 +07:00
github-actions[bot] b55220fd88
Bump version to v2.0.10 (#2864)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-08 14:52:38 +08:00
mergify[bot] ced98f1ebe
v2.0: rolls out chained Merkle shreds to ~50% of testnet slots (backport of #2660) (#2833)
rolls out chained Merkle shreds to ~50% of testnet slots (#2660)

(cherry picked from commit f2b7ef4aea)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-09-04 19:43:21 +00:00
mergify[bot] f111b36b2d
v2.0: Simplify RPC partitioned_epoch_reward_enabled determination (backport of #2802) (#2823)
Simplify RPC partitioned_epoch_reward_enabled determination (#2802)

* Check num_reward_partitions for partitioned_epoch_reward_enabled

* Make expect slightly more correct

* Better variable name

(cherry picked from commit 22b823c1c0)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-09-03 22:47:36 -06:00
mergify[bot] 1e9a514efc
v2.0: Update index.mdx (backport of #2238) (#2334)
* Update index.mdx (#2238)

(cherry picked from commit 49de5431a4)

* Update index.mdx

---------

Co-authored-by: Rex St. John | Anza <160657826+rexstjohn-anza@users.noreply.github.com>
2024-09-03 13:47:39 -05:00
mergify[bot] a829deae22
v2.0: SIMD-0118: fix `total_rewards` for recalculation (backport of #2780) (#2794)
* SIMD-0118: fix `total_rewards` for recalculation (#2780)

* Add new feature key

* Wrap existing code with new feature

* Extend test harness

* Make test fail

* Populate EpochRewards::total_rewards from PointValue

* Remove superfluous struct field

* Fixup tests

(cherry picked from commit 4470f6d96e)

# Conflicts:
#	programs/bpf_loader/src/syscalls/mod.rs
#	sdk/src/feature_set.rs

* Fix conflicts

---------

Co-authored-by: Tyera <tyera@anza.xyz>
2024-09-03 10:31:12 -06:00
github-actions[bot] ea2634f950
Bump version to v2.0.9 (#2804)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-31 11:46:28 +08:00
mergify[bot] 3e7563cdad
v2.0: RPC: rewards, return error if epoch_boundary_block is a lie (backport of #2758) (#2767)
RPC: rewards, return error if epoch_boundary_block is a lie (#2758)

* Return error if epoch_boundary_block is not actually the epoch boundary block

* Update rpc-client-api/src/custom_error.rs

Co-authored-by: Trent Nelson <490004+t-nelson@users.noreply.github.com>

---------

Co-authored-by: Trent Nelson <490004+t-nelson@users.noreply.github.com>
(cherry picked from commit 9a4b094ded)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-08-30 12:47:29 -06:00
mergify[bot] 3853b5d536
v2.0: replay: do not refresh votes for hot spare validators (backport of #2770) (#2779)
replay: do not refresh votes for hot spare validators (#2770)

(cherry picked from commit 726a14f0f2)

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
2024-08-29 18:38:47 -04:00
mergify[bot] 2f2d7ec1ad
v2.0: gossip: demote invalid duplicate proof errors to info (backport of #2754) (#2759)
gossip: demote invalid duplicate proof errors to info (#2754)

* gossip: demote invalid duplicate proof errors to info

* pr feedback: explicitly list every enum

(cherry picked from commit 7b6e6c179f)

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
2024-08-28 12:08:05 -04:00
mergify[bot] 2088c5870c
v2.0: replay: extend last fec set check for 32+ retransmitter signed shreds (backport of #2101) (#2192)
replay: extend last fec set check for 32+ retransmitter signed shreds (#2101)

* replay: extend last fec set check for 32+ retransmitter signed shreds

* pr feedback: use separate feature flag

* pr feedback: is_retransmitter_signed -> is_retransmitter_signed_variant, false for legacy

* pr feedback: update doc comment fail -> error

* pr feedback: hash -> bank_hash for report metrics

* refactor metrics inside blockstore fn, return block_id for future use

* pr feedback: gate metrics reporting

* pr feedback: do not distinguish impossible combos, simplify check code

* pr feedback: remove report_metrics helper fn

* pr feedback: remove metric

* pr feedback: block_id -> last_fec_set_merkle_root

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
2024-08-28 00:24:08 -04:00
github-actions[bot] 5525ac06ff
Bump version to v2.0.8 (#2727)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-26 15:00:20 +08:00
mergify[bot] 11b87c1ba3
v2.0: patches bug causing false duplicate nodes error (backport of #2666) (#2681)
* customizes override logic for gossip ContactInfo (#2579)

If there are two running instances of the same node, we want the
ContactInfo with more recent start time to be propagated through
gossip regardless of wallclocks.

The commit adds custom override logic for ContactInfo to first compare
by outset timestamp.

* updates ContactInfo.outset when hot-swapping identity (#2613)

When hot-swapping identity, ContactInfo.outset should be updated so that
the new ContactInfo overrides older node with the same pubkey.

* patches bug causing false duplicate nodes error (#2666)

The bootstrap code during the validator start pushes a contact-info with
more recent timestamp to gossip. If the node is staked the contact-info
lingers in gossip causing false duplicate node instances when the fully
initialized node joins gossip later on.

The commit refreshes the timestamp on contact-info so that it overrides
the one pushed by bootstrap and avoid false duplicates error.

---------

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-08-23 20:18:47 +00:00
mergify[bot] 590a23c7d8
v2.0: gossip: ignore retransmitter signatures when comparing duplicate shreds (backport of #2673) (#2699)
* gossip: ignore retransmitter signatures when comparing duplicate shreds (#2673)

* gossip: ignore retransmitter signatures when comparing duplicate shreds

* pr feedback: compare rest of payload instead of setting sig

* pr feedback: remove dcou, pub(super)

(cherry picked from commit ff87ed9187)

# Conflicts:
#	ledger/src/shred.rs

* fix conflicts

---------

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2024-08-23 15:59:02 -04:00
mergify[bot] 901de9aa2c
v2.0: replay: do not early return when marking slots duplicate confirmed (backport of #2700) (#2706)
* replay: do not early return when marking slots duplicate confirmed (#2700)

* replay: do not early return when marking slots duplicate confirmed

* pr feedback: catch panic explicitely, comments, add root test case

* pr feedback: add custom string to panic message

* pr feedback: add slot to log, use should_panic

* pr feedback: notification for {slot} -> notification for slot {slot}

(cherry picked from commit 1444baa426)

* rename mark_slots_duplicate_confirmed -> mark_slots_confirmed

---------

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2024-08-23 15:58:46 -04:00
mergify[bot] a210e0c6f5
v2.0: Check poh_recorder.start_slot() hasn't been dumped previously before checking it in ProgressMap. (backport of #2676) (#2691)
Check poh_recorder.start_slot() hasn't been dumped previously before checking it in ProgressMap. (#2676)

* Check poh_recorder.start_slot() hasn't been dumped previously before checking it in progress_map.

* Add more comments and put in checks for maybe_start_leader.

* Update core/src/replay_stage.rs

Co-authored-by: Ashwin Sekar <ashwin@solana.com>

* Use a slot which I am not leader to avoid dumping my own slot panic.

* Address reviewer comments.

* Address reviewer comments.

---------

Co-authored-by: Ashwin Sekar <ashwin@solana.com>
(cherry picked from commit 053faa6a29)

Co-authored-by: Wen <113942165+wen-coding@users.noreply.github.com>
2024-08-22 09:25:46 -07:00