Lucas Ste
ebd063eb79
Add Shuttle multithreading test infrastructure ( #1634 )
2024-06-17 19:24:43 -03:00
Pankaj Garg
2e54ed280b
SVM: Unify different instances of epoch_schedule in SVM and Bank into one ( #1736 )
2024-06-17 15:18:34 -07:00
Joe C
3af8f0cfdb
Program Runtime: Unify transaction batch program caches ( #1399 )
...
* local program cache: add `modified_entries` field
* use `modified_entries` for modified program cache
* invoke context: make `program_cache_for_tx_batch` mutable
* invoke context: unify local program cache instances
* remove `find_program_in_cache` alias
2024-06-17 17:08:13 -05:00
samkim-crypto
7ff7fe95d8
[docs] Update ZK Token Proof program to ZK ElGamal Proof program ( #1758 )
...
* docs: update ZK Token Proof program to ZK ElGamal Proof program
* remove blank line at eof
2024-06-18 06:46:48 +09:00
Tyera
863137135a
Simd-118: [HAL-04] simplify assertion that epoch contains enough slots for partitions ( #1769 )
...
Simplify assertion that epoch contains enough slots for partitions
2024-06-17 15:41:47 -06:00
Lucas Ste
8b8ddcbb84
Verify elf with active feature set before attempting deployment ( #1654 )
...
Co-authored-by: Jon C <me@jonc.dev>
2024-06-17 18:25:25 -03:00
Tyera
c1bfb28d83
Simd-118: [HAL-01] add log to unreachable macro ( #1767 )
...
Add log to unreachable macro
2024-06-17 20:22:45 +00:00
Tyera
24d0bd850e
Simd-118: [HAL-02] add lamports burned to error log ( #1768 )
...
Add lamports burned to error log
2024-06-17 20:03:57 +00:00
steviez
d056710c3e
ledger-tool: Use helper for AccountsDb args ( #1749 )
...
There are a handful of commands that specify AccountsDb config. To
create consistency between all these commands and remove repeated code,
build all of the arguments in a helper function that is passed to the
relevant commands.
2024-06-17 13:58:05 -05:00
Yihau Chen
f7dad6d44c
ci: upgrade client-traget macos version ( #1765 )
2024-06-17 18:20:57 +00:00
Greg Cusack
7f2beb21a1
add retries to transaction sending in LocalCluster ( #1747 )
2024-06-18 00:20:17 +08:00
Andrei Silviu Dragnea
f43cfc8c2e
refactor: clean up geyser-plugin-manager ( #1570 )
...
* Remove redundant Option return type from accountinfo_from_shared_account_data
* Remove redundant Option return type from accountinfo_from_stored_account_meta
2024-06-17 08:14:27 -05:00
Kevin Heavey
988647d814
remove unused build dep `cc` from solana-program ( #1659 )
...
* remove unused build dep `cc` from solana-program
* remove cc from workspace
2024-06-17 08:13:54 -05:00
Joe C
aae4b33d94
SVM: update spec ( #1757 )
2024-06-17 07:56:16 -05:00
Jon C
9d8310cbe7
CHANGELOG: `Copy` no longer derived on Rent and EpochSchedule ( #1746 )
2024-06-17 12:53:53 +02:00
Wen
a5229f989c
wen_restart: Ignore Gossip messages from my own pubkey. ( #1678 )
2024-06-15 10:50:32 -07:00
Kirill Fomichev
dbea20b12a
rpc: add more services to getClusterNodes ( #1637 )
...
* rpc: add tpu_forwards/tpu_forwards_quic to getClusterNodes
* add tvu
* order
* add tpu_vote
* add serve_repair
* fix tests
* fix name in tests
* remove tvu / repair quic
2024-06-14 12:19:15 -06:00
HaoranYi
d2124a995f
accounts-db: get rid of const in tests ( #1732 )
...
get rid of const in tests
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-06-14 09:37:53 -05:00
galactus
a6b2283142
ScanConfig defaults no longer sort results ( #1539 )
2024-06-14 08:27:33 -04:00
Joe C
a108498af1
SVM: Group transaction processing environment ( #1650 )
...
* SVM: introduce `TransactionProcessingEnvironment`
* SVM: fold `blockhash` and `lamports_per_signature` into env
* SVM: fold `rent_collector` into env
* SVM: fold `feature_set` into env
* SVM: fold `epoch_stake` into env
2024-06-14 00:02:50 -05:00
Brooks
7b4c4f6fb4
Adds accounts-hash-cache-tool to inspect accounts hash cache files ( #1731 )
2024-06-13 16:16:42 -04:00
Jeff Washington (jwash)
91a4ecfff7
refactor file version of get_account_shared_data ( #1712 )
...
* refactor file version of get_account_shared_data
* add tests to cover corrupted file when we can't read the complete data
for the account
* pr comments
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-06-13 14:08:45 -05:00
Tyera
d319d0d1be
Reorganize partitioned_epoch_rewards::tests fixtures ( #1719 )
...
* Move test fixtures up
* Update test_rewards_computation_and_partitioned_distribution_two_blocks
* Update test_rewards_computation_and_partitioned_distribution_one_block
2024-06-13 11:45:44 -06:00
Brooks
29a36b66c1
Fixes test_add_builtin_account() ( #1727 )
2024-06-13 13:36:37 -04:00
Greg Cusack
63fb9fe9d9
Remove `ThinClient` from `LocalCluster` ( #1300 )
...
* setup tpu client methods required for localcluster to use TpuClient
* add new_tpu_quic_client() for local cluster tests
* update local-cluster src files to use TpuClient. tests next
* finish removing thinclient from localcluster
* address comments
* add note for send_and_confirm_transaction_with_retries
* remove retry logic from tpu-client. Send directly to upcoming leaders without retry.
2024-06-13 10:31:10 -07:00
steviez
6d8fa7a97b
ledger-tool: Deprecate bank-hash command ( #1710 )
...
ledger-tool has a somewhat cluttered interface. The bank-hash command
offers little extra functionality compared to what the verify command
does, and could instead be an optional flag for the verify command.
This change leaves the bank-hash command present, but prints an error
message and tells the user to instead use verify --print-bank-hash. The
command will be removed altogether in the future.
2024-06-13 12:13:39 -05:00
Kevin Heavey
7e0688341e
remove superfluous usage of allow(dead_code) ( #1669 )
2024-06-13 22:52:49 +08:00
HaoranYi
e366797875
Use accounts_keep_slots map len for stats ( #1716 )
...
use accounts_keep_slots map len for stats
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-06-13 09:15:21 -05:00
Pankaj Garg
11018b5d35
Cleanup call to cache read lock in `prepare_program_cache_for_upcoming_feature_set()` ( #1694 )
2024-06-13 07:02:32 -07:00
dependabot[bot]
854620f51d
build(deps): bump lz4 from 1.24.0 to 1.25.0 ( #1724 )
...
* build(deps): bump lz4 from 1.24.0 to 1.25.0
Bumps [lz4](https://github.com/10xGenomics/lz4-rs ) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/10xGenomics/lz4-rs/releases )
- [Changelog](https://github.com/10XGenomics/lz4-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/10xGenomics/lz4-rs/commits/v1.25 )
---
updated-dependencies:
- dependency-name: lz4
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update all Cargo files
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 22:01:45 +08:00
dependabot[bot]
791f6ba5cf
build(deps): bump proc-macro2 from 1.0.84 to 1.0.85 ( #1723 )
...
* build(deps): bump proc-macro2 from 1.0.84 to 1.0.85
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.84 to 1.0.85.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.84...1.0.85 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update all Cargo files
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 22:01:29 +08:00
samkim-crypto
174f241cbe
[zk-sdk] Expose function to convert a grouped ElGamal ciphertext to a regular ciphertext ( #1715 )
2024-06-13 21:08:15 +09:00
samkim-crypto
b5b4c007e5
[zk-sdk] Add functions to derive `ElGamalKeypair` and `AeKey` from `Signature` ( #1717 )
2024-06-13 21:08:01 +09:00
Yihau Chen
c30f173004
ci: print spl commit hash for downstream tests ( #1718 )
...
* ci: print the commit hash of spl that is using in downstream project tests
* ci: trigger spl downstream tests correctly
2024-06-13 11:11:25 +00:00
Jon C
9be66e975e
sdk-macro: Move package_metadata macro to separate crate ( #1713 )
...
* sdk-macro: Move package_metadata macro to separate crate
* Update sbf lockfile
* Cargo fmt
2024-06-13 13:05:58 +02:00
dependabot[bot]
7b8f9d88d9
build(deps): bump url from 2.5.0 to 2.5.1 ( #1722 )
...
* build(deps): bump url from 2.5.0 to 2.5.1
Bumps [url](https://github.com/servo/rust-url ) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.5.0...v2.5.1 )
---
updated-dependencies:
- dependency-name: url
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update all Cargo files
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 18:27:19 +08:00
Yihau Chen
73b6df0ce1
test: ensure using the latest blockhash to process tx ( #1720 )
...
ensure using the latest blockhash to process tx
we see tests failing in CI due to the blockhash being invalid. details: https://github.com/anza-xyz/agave/pull/1693#discussion_r1637439072
2024-06-13 17:32:37 +08:00
Ryo Onodera
334221503c
Return back stale out-of-pool scheduler by timeout ( #1690 )
...
* Return back stale out-of-pool scheduler by timeout
* Add tests
* Document and proper panic messages
* Avoid recursion
* Tweak comments
2024-06-13 12:48:49 +09:00
Ashwin Sekar
da36ce7abe
replay: do not hold bank forks lock during mark_dead_slot ( #1597 )
2024-06-12 22:14:11 -04:00
Joe C
5148dcccf7
SVM: change modified programs result to hash map ( #1391 )
...
* SVM: change modified programs result to hash map
* take entries
2024-06-12 22:54:29 +00:00
Joe C
a6035da45e
SDK: Slot Hashes: Add queries using `sol_get_sysvar` ( #1622 )
...
* sysvars: add `get_sysvar` handler
* sysvars: add `SlotHashesSysvar` trait
* use bytemuck slices for binary search
* refactor get_sysvar API
* add tests
* add pointer alignment check
* make the API a struct
* move allocation check
* use `PodSlotHash` for layout
* cleanup
2024-06-12 22:39:16 +00:00
samkim-crypto
5ff764d9e4
[zk-sdk] Rename `elgamal_program` to `zk_elgamal_proof_program` module ( #1698 )
...
* rename `elgamal_program` to `zk_elgamal_proof_program`
* update dependencies outside of `zk-sdk`
2024-06-13 06:15:34 +09:00
Joe C
6357f4ee76
Feature-Gate: Migrate Address Lookup Table program to Core BPF ( #1380 )
...
feature-gate: migrate address lookup table to Core BPF
2024-06-12 16:09:07 -05:00
Jeff Washington (jwash)
54adee58f8
add ancient pack stats for unmovable slots ( #1699 )
2024-06-12 15:31:07 -05:00
Jeff Washington (jwash)
1bd9bd1a10
file based append vecs ( #1394 )
...
* file based storages
* pr feedback
* add comments
* add tests for buffered reader and file reader
* fix windows clippy
* pr: update tests for jeff comments
* pr feedback
* fix a bug - read at least default min bytes
* Revert "fix a bug - read at least default min bytes"
This reverts commit 52ccd8e022dd8a047596b95b4ab2abc91c7c983c.
* add test coverages flush, reset, reopen functions for append_vec.rs
* one more dead code
* renames
* renames
* renames
* wee wah wee wah grammar police
* rename
* add debug assert
* use const
* const
* reorder
* reorders and renames
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-06-12 15:26:47 -05:00
Alexander Meißner
06f1131e6f
Refactor - Move SBPF program crate local tests into workspace global test directory ( #1708 )
...
* Splits SBPF program test crate `mem` into `dep`.
* Moves crate local tests into workspace global test directory.
* Removes non-dev dependencies from Cargo.toml
2024-06-12 21:36:32 +02:00
Alessandro Decina
77ce500494
quic server: disable GSO, reduce reply data allocations 10x ( #1647 )
...
quic server: disable GSO
The server only accepts inbound unidirectional streams initiated by
clients, which means that reply data never exceeds one MTU. By disabling
GSO, we make quinn_proto::Connection::poll_transmit allocate only 1 MTU
vs 10 * MTU for _each_ transmit. This reduces allocations 10x.
2024-06-13 01:20:09 +07:00
Jon C
c9d670773c
test-validator: Try to reset deployment slot on all cloned accounts ( #1706 )
...
* test-validator: Try to reset deployment slot on all cloned accounts
* Address feedback
2024-06-12 20:00:07 +02:00
Joe C
ecf72523ab
SVM: Dissolve `RuntimeConfig` ( #1590 )
...
* SVM: add `compute_budget` to processing config
* bank: add `compute_budget` field
* SVM: add `transaction_account_lock_limit` to processing config
* bank: add `transaction_account_lock_limit` field
* bank: drop `runtime_config` getter
* SVM: require `compute_budget` for `prepare_program_cache_for_upcoming_feature_set`
* SVM: drop `runtime_config` from batch processor
2024-06-12 12:04:39 -05:00
Justin Starry
8d3b2c9286
Cleanup old variable name in account loader tests ( #1691 )
...
cleanup old variable name in account loader tests
2024-06-12 09:24:34 -07:00