* The constraints on compute power a program can consume is limited only to its instruction count (#11717)
(cherry picked from commit 8d362f682b)
# Conflicts:
# programs/bpf/Cargo.toml
# programs/bpf_loader/Cargo.toml
# programs/bpf_loader/src/lib.rs
# programs/bpf_loader/src/syscalls.rs
# runtime/src/bank.rs
# sdk/src/instruction.rs
* Resolve conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com>
* Allow the sendTransaction preflight commitment level to be configured
(cherry picked from commit b660704faa)
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com>
* Start leader blocks if previous leader was on different fork
* Fix test
Co-authored-by: Carl <carl@solana.com>
(cherry picked from commit 5f8d34feb3)
Co-authored-by: carllin <wumu727@gmail.com>
* Filter push/pulls from spies
* Don't pull from peers with shred version == 0, don't push to people with shred_version == 0
Co-authored-by: Carl <carl@solana.com>
(cherry picked from commit 0f0a2ddafe)
Co-authored-by: carllin <wumu727@gmail.com>
* Add per-request cap; also use clap-utils
* Clean up arg names and take cap inputs as SOL
(cherry picked from commit 71d5409b3b)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Re-do rent collection check on rent-exempt account (#11349)
* wip: re-do rent collection check on rent-exempt account
* Let's see how the ci goes
* Restore previous code
* Well, almost all new changes are revertable
* Update doc
* Add test and gating
* Fix tests
* Fix tests, especially avoid to change abi...
* Fix more tests...
* Fix snapshot restore
* Align to _new_ with better uninitialized detection
(cherry picked from commit 23fa84b322)
# Conflicts:
# core/src/rpc_subscriptions.rs
* Fix conflicts
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
* Refactor bigtable apis to accept start and end keys
* Make helper fn to deserialize cell data
* Refactor get_confirmed_signatures_for_address to use get_row_data range
* Add until param to get_confirmed_signatures_for_address
* Add until param to blockstore api
* Plumb until through client/cli
* Simplify client params
(cherry picked from commit 6c5b8f324a)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Use index to filter address-signatures correctly
* Pull additional keys to account for filtered records
* Clarify variable name
(cherry picked from commit 820af533a4)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Add failing test for decoding ShortU16 alias values
(cherry picked from commit 338f66f9aa)
* Factor out ShortU16 deser vistor logic to helper
(cherry picked from commit 6222fbcc66)
* Reimplement decode_len() with ShortU16 vistor helper
(cherry picked from commit 30dbe257cf)
Co-authored-by: Trent Nelson <trent@solana.com>
* Split out commitment-cache update for unit testing
* Add failing test
* Ensure highest_confirmed_root only grows
(cherry picked from commit 4da1e9833c)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Avoid skip_serializing_if since that breaks deserialization
* Adapt RpcClient to recent token method changes
(cherry picked from commit 17645ee20c)
Co-authored-by: Michael Vines <mvines@gmail.com>
* Fix bad rent in Bank::deposit as if since epoch 0
* Remove redundant predicate
* Rename
* Start to add tests with some cleanup
* Forgot to add refactor code...
* Enchance test
* Really fix rent timing in deposit with robust test
* Simplify new behavior by disabling rent altogether
(cherry picked from commit 6c242f3fec)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
* Refresh blockhash for program writes and finalize transactions
* Refactor to use current api, eliminating an rpc call
* Review comment
(cherry picked from commit c0d6761f63)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>