* add get_confirmed_blocks_with_data and get_protobuf_or_bincode_cells
(cherry picked from commit f3219fb695)
* appease clippy
(cherry picked from commit 5533e9393c)
* use &[T] instead of Vec<T> where appropriate
clippy
(cherry picked from commit fbcf6a0802)
* modify get_protobuf_or_bincode_cells to accept and return an iterator
(cherry picked from commit f717fda9a3)
* make get_protobuf_or_bincode_cells accept IntoIter on row_keys, make get_confirmed_blocks_with_data return an Iterator
(cherry picked from commit d8be0d9430)
Co-authored-by: Edgar Xi <edgarxi97@gmail.com>
* 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>