* docs: update sysvar docs for load_instruction_at_checked
Update the instruction introspection docs to use the updated load_instruction_at_checked function instead of deprecated load_instruction_at
* Update to load_current_index_checked
(cherry picked from commit 64e2d9dc47)
Co-authored-by: Zayyan Faizal <zayyanf@gmail.com>
* Fix `process_set_validator_info`
Add space for keys in calculation for rent exempt in
`process_set_validator_info`.
The space required for allocating the `(ConfigKeys, ValidatorInfo)`
tuple only considered space for `ValidatorInfo`.
But `config_instruction::create_account` also requires space for `n`
keys.
* Remove one clone call from closure
(cherry picked from commit 7eaec26a1c)
Co-authored-by: Enrique Fynn <me@enriquefynn.com>
* Ensure blocks do not exceed the max accounts data size during Replay Stage (#23422)
(cherry picked from commit 3c6840050c)
# Conflicts:
# runtime/src/bank.rs
* fix conflicts
Co-authored-by: Brooks Prumo <brooks@solana.com>
* Revert "fix tests after merge"
This reverts commit ba2d83f580.
(cherry picked from commit 0a17edcc1f)
* Revert "1. Persist to blockstore less frequently;"
This reverts commit 7aa1fb4e24.
(cherry picked from commit c878c9e2cb)
# Conflicts:
# core/src/cost_update_service.rs
# core/src/tvu.rs
# runtime/src/cost_model.rs
* Revert "use EMA in place of Welford"
This reverts commit 6587dbfa47.
(cherry picked from commit 9acbfa5eb1)
* Revert "- estimate a program cost as 2 standard deviation above mean"
This reverts commit a25ac1c988.
(cherry picked from commit 5a0cd05866)
# Conflicts:
# core/src/cost_update_service.rs
# runtime/src/cost_model.rs
* fix merge conflicts
Co-authored-by: Carl Lin <carl@solana.com>
Co-authored-by: Tao Zhu <tao@solana.com>
* Fix incorrect nonoverlapping test in sol_memcpy (#21007)
Thanks!
(cherry picked from commit df2b448993)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
# sdk/program/src/program_stubs.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Brian Anderson <andersrb@gmail.com>
Co-authored-by: Jack May <jack@solana.com>
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)