Commit Graph

26091 Commits

Author SHA1 Message Date
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
mergify[bot] f3b569bf2e
v2.0: Bound default value for thread pool args (backport of #2599) (#2662)
Bound default value for thread pool args (#2599)

The thread pool argument trait declares min/max/default functions. These
functions are then called to provide a default as well as validation
that any user set value on the CLI is within [min(), max()].

Some of the default values are fixed numbers. On a machine with few
enough cores, the default could exceed the max. This would raise an
error when the argument is parsed. This can be worked around by the user
specifying a lower value; however, these flags are still very much
experimental and intentionally hidden.

So, make the default value that is passed to CLAP the min of default()
and max(). This will adjust the default on low core count machines while
leaving settings on sufficient machines untouched.

(cherry picked from commit 094a63476c)

Co-authored-by: steviez <steven@anza.xyz>
2024-08-21 11:59:27 -05:00
mergify[bot] 1fefe5f36e
v2.0: fix: send votes to the immediate next leader (backport of #2607) (#2621) 2024-08-21 07:28:13 +08:00
mergify[bot] 3b0cdbf373
v2.0: Runtime: Core BPF: Add test for CPI post-migration (backport of #2531) (#2665)
Runtime: Core BPF: Add test for CPI post-migration (#2531)

(cherry picked from commit 8f675ebcfe)

Co-authored-by: Joe C <joe.caulfield@anza.xyz>
2024-08-20 08:45:31 -04:00
github-actions[bot] a4f9b13ee2
Bump version to v2.0.7 (#2651)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-19 15:03:32 -06:00
mergify[bot] e00d83b0cc
v2.0: Runtime: Core BPF Migration: Add checks for executable program account (backport of #2483) (#2516)
Runtime: Core BPF Migration: Add checks for executable program account (#2483)

* Runtime: Core BPF: check `executable` on program load

* Runtime: Core BPF: set `executable` on migration

(cherry picked from commit 33119c5df7)

Co-authored-by: Joe C <joe.caulfield@anza.xyz>
2024-08-19 17:02:12 -04:00
mergify[bot] 600cfbb10b
v2.0: CI: Disable downstream anchor builds (backport of #2629) (#2647)
* CI: Disable downstream anchor builds (#2629)

#### Problem

With https://github.com/solana-labs/solana-program-library/pull/7148,
spl-token-2022 has moved from using solana-zk-token-sdk to
solana-zk-sdk, which is a major breaking change. Certain agave and
anchor crates are depending on the re-export solana-zk-token-sdk in
spl-token-2022, which is no longer present. This change is causing the
downstream Anchor job to fail, since the patched version of
spl-token-2022 is no longer compatible.

#### Summary of changes

Until new major versions of the SPL crates are available used by the
Agave monorepo, disable the downstream anchor job.

(cherry picked from commit 3b9e7a3ca5)

# Conflicts:
#	.github/workflows/downstream-project-anchor.yml

* Fix merge conflicts

---------

Co-authored-by: Jon C <me@jonc.dev>
2024-08-17 12:07:56 -04:00
mergify[bot] 6f63e4558b
v2.0: fix: ensure vote packets can be retried (backport of #2605) (#2612) 2024-08-17 10:49:19 +08:00
mergify[bot] 377d19de93
v2.0: Improves panic message if send() fails in streaming_unpack_snapshot() (backport of #2459) (#2464)
Improves panic message if send() fails in streaming_unpack_snapshot() (#2459)

(cherry picked from commit 427a18b22e)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-08-16 17:53:14 -04:00
mergify[bot] 530b4757bf
v2.0: Update security email to security@anza.xyz (backport of #2598) (#2619)
Update security email to security@anza.xyz (#2598)

(cherry picked from commit 5e80a7ca7b)

Co-authored-by: Will Hickey <will.hickey@anza.xyz>
2024-08-16 09:49:18 -05:00
mergify[bot] fd3b4f324f
v2.0: replay: do not start leader for a block we already have shreds for (backport of #2416) (#2484)
* replay: do not start leader for a block we already have shreds for (#2416)

* replay: do not start leader for a block we already have shreds for

* pr feedback: comment, move existing check to blockstore fn

* move blockstore read after tick height check

* pr feedback: resuse blockstore fn in next_leader_slot

(cherry picked from commit 15dbe7fb0f)

# Conflicts:
#	poh/src/poh_recorder.rs

* fix conflicts

---------

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2024-08-15 13:40:38 -04:00
mergify[bot] 1f0c8f4be0
v2.0: Flushes hash cache data file's mmap after done writing (backport of #2567) (#2575)
Flushes hash cache data file's mmap after done writing (#2567)

(cherry picked from commit 65f6466396)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-08-14 17:26:37 -04:00
mergify[bot] f615f416a1
v2.0: checks for duplicate instances using the new ContactInfo (backport of #2506) (#2510)
* checks for duplicate instances using the new ContactInfo (#2506)

Working towards deprecating NodeInstance CRDS value, the commit adds
check for duplicate instances using the new ContactInfo.

(cherry picked from commit 1d825df4e1)

* removes unwarp

---------

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-08-14 17:52:33 +00:00
mergify[bot] 54d08d739a
v2.0: adds feature-gate code to enforce retransmitter signature verification (backport of #1840) (#2415)
* adds feature-gate code to enforce retransmitter signature verification (#1840)

(cherry picked from commit 79cb077f10)

# Conflicts:
#	sdk/src/feature_set.rs

* resolves merge conflicts

---------

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-08-14 17:48:37 +00:00
mergify[bot] 9557d87eac
v2.0: Fix setting an account override for fee payer (backport of #2375) (#2451) 2024-08-15 00:09:44 +08:00
mergify[bot] e86b3cdcfc
v2.0: fix: borrow stakes delegation during snapshot serialization (backport of #2455) (#2500) 2024-08-14 07:41:36 +08:00
mergify[bot] 858279ad9e
v2.0: rolls out chained Merkle shreds to ~21% of testnet (backport of #2503) (#2564)
rolls out chained Merkle shreds to ~21% of testnet slots (#2503)

(cherry picked from commit ea10d2e534)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-08-13 19:07:25 +00:00
github-actions[bot] 35389e67a9
Bump version to v2.0.6 (#2518)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-10 01:09:10 +08:00
mergify[bot] dca9b880c4
v2.0: EpochRewards: decode points and rewards fields as Strings (backport of #2501) (#2512)
EpochRewards: decode points and rewards fields as Strings (#2501)

Decode points and rewards fields as Strings

(cherry picked from commit 605acd118f)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-08-09 10:55:53 -06:00
Will Hickey 57a09f19f9
Bump rbpf version to 0.8.4 (backport of #2515) (#2514)
Bump rbpf version to 0.8.4
2024-08-08 23:14:11 +00:00
mergify[bot] ea5a0d0678
v2.0: Bump platform tools version to v1.42 (backport of #2355) (#2461)
Bump platform tools version to v1.42 (#2355)

(cherry picked from commit fb80e48fb0)

Co-authored-by: Lucas Ste <38472950+LucasSte@users.noreply.github.com>
2024-08-08 14:28:53 -03:00
mergify[bot] 20b76501ad
v2.0: Cleanup PoH speed check error (backport of #2400) (#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 ecc05c50b8)

# Conflicts:
#	core/src/validator.rs

* merge conflicts

---------

Co-authored-by: steviez <steven@anza.xyz>
2024-08-06 14:34:55 -05:00
github-actions[bot] 505299413d
Bump version to v2.0.5 (#2419)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-03 15:04:53 +08:00
mergify[bot] 0b1143e149
v2.0: verifies retransmitter signature on chained Merkle shreds (backport of #1735) (#2201)
verifies retransmitter signature on chained Merkle shreds (#1735)

(cherry picked from commit 6f94686181)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-08-02 18:01:46 +00:00
mergify[bot] 962085c0e4
v2.0: rolls out chained Merkle shreds to ~5% of testnet (backport of #2389) (#2407)
rolls out chained Merkle shreds to ~5% of testnet (#2389)

(cherry picked from commit a60fbc2288)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2024-08-02 17:43:33 +00:00
mergify[bot] 5b8a22981d
v2.0: Add removed line from PR1192 (backport of #2249) (#2319)
Add removed line from PR1192 (#2249)

* Add removed line from PR1192

* Test missing programs were loaded

(cherry picked from commit b14f1037bb)

Co-authored-by: asolana <110843012+ksolana@users.noreply.github.com>
2024-08-02 22:49:45 +07:00
mergify[bot] 4f704d84b3
v2.0: [ed25519] Use `verify_strict` for signature verification in ed25519 precompile (backport of #1876) (#2179)
[ed25519] Use `verify_strict` for signature verification in ed25519 precompile (#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 <ecesena@jumptrading.com>
(cherry picked from commit ddda6c30a3)

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
2024-08-02 10:30:50 +09:00
mergify[bot] 4b521aa4e7
v2.0: ledger-tool: Set initial last full snapshot slot (backport of #2314) (#2343)
ledger-tool: Set initial last full snapshot slot (#2314)

(cherry picked from commit 75a640e666)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-07-31 14:16:24 -04:00
mergify[bot] f4d5731b25
v2.0: Refactor match and add test cases (backport of #2357) (#2359)
Refactor match and add test cases (#2357)

(cherry picked from commit 9c0a927058)

Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-30 23:55:37 -06:00
mergify[bot] bc6041d496
v2.0: validator: unify and colorize help (backport of #2323) (#2337)
validator: unify and colorize help (#2323)

(cherry picked from commit e05dbe7264)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-07-30 13:12:05 -04:00
mergify[bot] 16dd41c04c
v2.0: ledger-tool: unify and colorize help (backport of #2322) (#2335)
ledger-tool: unify and colorize help (#2322)

(cherry picked from commit 38458f4a34)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-07-30 13:11:56 -04:00
mergify[bot] 71fd167d28
v2.0: changelog: Lists removed validator args (backport of #2324) (#2336)
changelog: Lists removed validator args (#2324)

(cherry picked from commit 298eb42b98)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-07-30 13:11:32 -04:00
mergify[bot] 4234b1ba45
v2.0: chore: bump openssl to 0.10.66 (backport of #2228) (#2235)
chore: bump openssl to 0.10.66 (#2228)

(cherry picked from commit 02918b89f6)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-07-25 23:39:54 +08:00
mergify[bot] fcd108be40
v2.0: Update index.md (backport of #2242) (#2250)
Update index.md (#2242)

(cherry picked from commit c3ea4e2ba1)

Co-authored-by: Rex St. John | Anza <160657826+rexstjohn-anza@users.noreply.github.com>
2024-07-23 16:18:46 +00:00
mergify[bot] 845faca447
v2.0: geyser: add num_partitions to block info (backport of #2158) (#2178)
geyser: add num_partitions to block info (#2158)

* geyser: add num_partitions to block info

* fix comment

(cherry picked from commit d8791a633f)

Co-authored-by: Kirill Fomichev <fanatid@ya.ru>
Co-authored-by: Tyera <tyera@anza.xyz>
2024-07-23 10:09:23 -06:00
github-actions[bot] 9b4fcdcfa9
Bump version to v2.0.4 (#2223)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-23 13:52:06 +08:00
mergify[bot] c6b0570fff
v2.0: ci: "Fix" the downstream anchor build (backport of #2208) (#2214)
ci: "Fix" the downstream anchor build (#2208)

* ci: "Fix" the downstream anchor build

* Force the CI run to happen

(cherry picked from commit fe652ca59e)

Co-authored-by: Jon C <me@jonc.dev>
2024-07-19 22:19:03 +00:00
mergify[bot] bd5ee02f70
v2.0: validator cli: Clarifies snapshot intervals (backport of #2128) (#2152)
validator cli: Clarifies snapshot intervals (#2128)

(cherry picked from commit 4c7996c530)

Co-authored-by: Brooks <brooks@anza.xyz>
2024-07-19 15:31:12 -04:00