* 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.
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.
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>
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>
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>
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>
* 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>
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>
rolls out chained Merkle shreds to 100% of testnet slots (#2858)
(cherry picked from commit a15fef1b26)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
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>
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>
remove disable_block_production_forwarding cli flag (#2687)
(cherry picked from commit df892c4241)
Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
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>
rolls out chained Merkle shreds to ~50% of testnet slots (#2660)
(cherry picked from commit f2b7ef4aea)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
* 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>
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>
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>
* 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>
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>