* Deprecate commitment variants (#14797)
* Deprecate commitment variants
* Add new CommitmentConfig builders
* Add helpers to avoid allowing deprecated variants
* Remove deprecated transaction-status code
* Include new commitment variants in runtime commitment; allow deprecated as long as old variants persist
* Remove deprecated banks code
* Remove deprecated variants in core; allow deprecated in rpc/rpc-subscriptions for now
* Heavier hand with rpc/rpc-subscription commitment
* Remove deprecated variants from local-cluster
* Remove deprecated variants from various tools
* Remove deprecated variants from validator
* Update docs
* Remove deprecated client code
* Add new variants to cli; remove deprecated variants as possible
* Don't send new commitment variants to old clusters
* Retain deprecated method in test_validator_saves_tower
* Fix clippy matches! suggestion for BPF solana-sdk legacy compile test
* Refactor node version check to handle commitment variants and transaction encoding
* Hide deprecated variants from cli help
* Add cli App comments
(cherry picked from commit ffa5c7dcc8)
* Fix 1.5 stake-o-matic
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
* Reduce few GBs mem by avoiding another overalloc.
* Use x.len() for the last item from chunks()
(cherry picked from commit 015058e0b7)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
Following d6d76219b, staked nodes computed from vote accounts are
already cached in runtime::Stakes, so the caching in retransmit_stage is
redundant.
(cherry picked from commit e1021d9f83)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
* Upgrade to Rust v1.49.0
(cherry picked from commit cbffab7850)
# Conflicts:
# core/src/crds_value.rs
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com>
* Add convenience function to create a snapshot archive out of any Bank
(cherry picked from commit dd5a2ef05f)
* Add solana-test-validator --warp-slot argument
(cherry picked from commit bf1943e489)
Co-authored-by: Michael Vines <mvines@gmail.com>
* CLI: Strive for at least one signer
(cherry picked from commit 8f8d593457)
* CLI: Allow missing pubkey in `--verbose` config output
(cherry picked from commit 90e1778cd2)
* CLI: Don't scare the users
(cherry picked from commit e9c98f2416)
Co-authored-by: Trent Nelson <trent@solana.com>
* Expose not-found bigtable error
* Add custom rpc error for bigtable data not found
* Return custom rpc error when bigtable block is not found
* Generalize long-term storage
(cherry picked from commit 71e9958e06)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Add block_time to getConfirmedSignaturesForAddress2 and getConfirmedTransaction (#14572)
* add block_time to get_confirmed_signatures_for_address2 and protobuf implementation for tx_by_addr
* add tests for convert
* update cargo lock
* run cargo format after rebase
* introduce legacy TransactionByAddrInfo
* move LegacyTransactionByAddrInfo back to storage-bigtable
(cherry picked from commit 1de6d28eaf)
* fix local sanity script
* add missing block_time field
Co-authored-by: Josh <josh.hundley@gmail.com>
Clean less keys by tracking the two cases:
* Touched keys per slot in uncleaned_keys derived from
accounts delta hash operation.
* Set of keys with any zero-lamport updates.
Co-authored-by: sakridge <sakridge@gmail.com>