The commit adjust CRDS_SHARDS_BITS up to be in-line with mask_bits in
gossip pull request. This will avoid redundant filtering of irrelevant
crds entries when responding to pull requests.
(cherry picked from commit 1282277126)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
* Improve UX querying rpc for blocks at or before the snapshot from boot (#23403)
* Bump first-available block to first complete block
* Remove obsolete purges in tests (PrimaryIndex toggling no longer in use
* Check first-available block in Rpc check_slot_cleaned_up
(cherry picked from commit 3b5b71ce44)
# Conflicts:
# ledger/src/blockstore.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <tyera@solana.com>
* Prevent new RentPaying state created by paying fees (#23358)
* Add failing test
* Check fee-payer rent-state change on load
* Add more test cases
* Review comments
(cherry picked from commit 36484f4f08)
# Conflicts:
# runtime/src/account_rent_state.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <tyera@solana.com>
Previously, `ACCOUNT` and `CHANGE` were specified as being positive integers, but since both can assume a value of 0 (as in the given example), they should be specified as nonnegative integers
(cherry picked from commit d1f141484e)
Co-authored-by: alnoki <43892045+alnoki@users.noreply.github.com>
This change prevents zero-cost computation of hash functions on
unbound number of zero-length slices of data. The cost for each slice
is at least equal to the base cost of a memory operation, but could be
more for longer slices.
(cherry picked from commit 0a3a18744f)
* Skip adding builtins if they will be removed (#23233)
* Add failing test for precompile transition
* Skip adding builtins if they will be removed
* cargo clean
* nits
* fix abi check
* remove workaround
Co-authored-by: Jack May <jack@solana.com>
(cherry picked from commit 1719d2349f)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/builtins.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com>
Co-authored-by: Jack May <jack@solana.com>
* Fix the flaky test test_restart_tower_rollback (#23129)
* Add flag to disable voting until a slot to avoid duplicate voting
* Fix the tower rollback test and remove it from flaky.
(cherry picked from commit ab92578b02)
* Resolve conflicts
Co-authored-by: Ashwin Sekar <ashwin@solana.com>
* Add simulation detection countermeasure (#22880)
* Add simulation detection countermeasures
* Add program and test using TestValidator
* Remove incinerator deposit
* Remove incinerator
* Update Cargo.lock
* Add more features to simulation bank
* Update Cargo.lock per rebase
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
(cherry picked from commit c42b80f099)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/Cargo.toml
* Update Cargo.lock
Co-authored-by: Michael Vines <mvines@gmail.com>
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* Update ping to transfer to self, with rotating amount
* Remove balance check
(cherry picked from commit 90689585ef)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* shrink batches when over 80% of the space is wasted (#23066)
* shrink batches when over 80% of the space is wasted
(cherry picked from commit 83d31c9e65)
# Conflicts:
# core/benches/sigverify_stage.rs
# core/src/sigverify_stage.rs
# perf/src/sigverify.rs
* fixup!
Co-authored-by: anatoly yakovenko <anatoly@solana.com>
* flag end-of-slot when poh bank is gone
(cherry picked from commit 03bf66a51b)
# Conflicts:
# core/src/banking_stage.rs
* merge fix
Co-authored-by: Tao Zhu <tao@solana.com>