Jeff Washington (jwash)
b5afcbb72f
disk index: move num_slots() to MultipleSlots ( #30991 )
2023-03-30 12:39:15 -07:00
Jeff Washington (jwash)
2672637395
disk index: move fns to MultipleSlots ( #30989 )
2023-03-30 12:00:43 -07:00
Jeff Washington (jwash)
2cafd641fe
disk index: introduce MultipleSlots ( #30988 )
...
* disk index: introduce MultipleSlots
* pr feedback
2023-03-30 11:27:45 -07:00
Pankaj Garg
bc44ac73db
Return error early if program is a tombstone ( #30940 )
2023-03-30 11:16:01 -07:00
Brennan
b35e83376a
Minimize lock on blacklist nodes ( #30987 )
2023-03-30 11:08:43 -07:00
ryleung-solana
721d8cb0ac
Add logging of the number of chunks handled by the quic server ( #30954 )
2023-03-31 01:51:32 +08:00
Brooks
eb47e44c6b
disk bucket: refactor storage get/get_mut fns ( #30985 )
2023-03-30 12:38:35 -04:00
Brennan
7804d9aa92
Eliminate in-out parameter for gossip shutdown function ( #30986 )
2023-03-30 09:25:25 -07:00
Jeff Washington (jwash)
5ae3288a0b
disk index IndexEntry gets <T> ( #30984 )
...
* disk index IndexEntry gets <T>
* remove unused phantom
2023-03-30 09:23:51 -07:00
steviez
cc8e531a5d
Enforce a minimum of 1 on full and incremental snapshot retention ( #30968 )
2023-03-30 10:16:36 -05:00
Jeff Washington (jwash)
e6ca734ac4
disk index: include T on a few structs ( #30983 )
2023-03-30 07:44:50 -07:00
blackghost1987
9f9d6f8a89
Relax `Sized` bound for `Signers` in `Transaction` and `Client` ( #30568 )
...
* relax Sized bound for Signers in Transaction and Client
* also relax Sized bounds in client, runtime, thin-client and tpu-client
* add tests for using non-sized transaction signers
* fix macro for thin_client vs ?Sized
* move tests to transactions, add Sized relaxation to mut macro
* fix clippy warning
* get rid of unnecessary imports
2023-03-30 13:12:48 +00:00
Jeff Washington (jwash)
38e054f4a6
disk bucket: get mut right on get_mut_cell_slice ( #30972 )
2023-03-30 05:19:29 -07:00
Yihau Chen
c7ddb53cf1
chore: reactivate buildkite test analytics ( #30980 )
...
chore: upload test results to buildkite analytics
2023-03-30 17:02:37 +08:00
Madhav Goyal
493efc5169
docs: Linking bankless-leader simd ( #30790 )
...
Added the link to simd so it shows up on the solana website if anyone looking to contribute.
2023-03-30 09:20:08 +02:00
Illia Bobyr
dcb675eea1
validator: Rename arg: skip-{=>startup-ledger-}verification ( #30973 )
...
`--skip-verification` was introduced as a replacement for
`--skip-poh-verify`, but the name does not reflect the important detail,
that this argument only disables verification during the validator
startup.
As the argument was introduced just a few days ago, it seems fine to
rename it "in-place".
2023-03-29 23:34:47 -07:00
behzad nouri
4ed87112bc
simplifies streamer::nonblocking::quic::get_connection_stake ( #30969 )
2023-03-29 21:08:21 +00:00
Kevin Heavey
7c6572d5ec
Add missing versioned tx support to BanksClient ( #30958 )
...
* replace Transaction params with impl Into<VersionedTransaction>
* replace Vec<Transaction> with Vec<T>
* fmt
2023-03-29 20:47:25 +00:00
Jeff Washington (jwash)
4b7cfa23c1
disk index: introduce IndexEntryPlaceInBucket ( #30944 )
...
* refactor: move data_bucket_from_num_slots
* disk index: introduce IndexEntryPlaceInBucket
* remove <T> from IndexEntryPlaceInBucket
* fix and comment index_bucket_for_testing
2023-03-29 13:41:10 -07:00
Jeff Washington (jwash)
d542496d10
fix typo in info log ( #30964 )
...
fix typo
2023-03-29 13:23:06 -07:00
Illia Bobyr
fe5ae7733b
ledger: confirm_slot_entries(): confirmation_elapsed metric ( #30807 )
...
Measure total time spent inside `confirm_slot_entries()`. Useful metric
in addition to `replay_elapsed` and
`poh_verify_elapsed`/`transaction_verify_elapsed`, as it shows how PoH
and transaction verification interact with the replay process.
2023-03-29 13:11:29 -07:00
joeaba
ecd3279af9
fix grafana configuration ( #30961 )
...
* fix grafana configuration
2023-03-29 13:21:50 -05:00
Tyera
590593cd31
Remove flaky ProgramTest test ( #30967 )
...
Remove flaky test
2023-03-29 12:07:44 -06:00
Jeff Washington (jwash)
97af6aad4a
remove unused bucket map direct add/unref calls ( #30942 )
2023-03-29 10:26:53 -07:00
Brennan
9f7e041829
Sub function getting vetted RPC nodes ( #30946 )
...
* Sub function getting vetted RPC nodes
* PR feedback
2023-03-29 17:22:40 +00:00
Brennan
000b912fc6
Update discord invite links ( #30909 )
...
* Update discord invite links
* Point to Stack Exchange for support
2023-03-29 09:14:22 -07:00
steviez
86cf0ad758
ledger-tool: Skip compaction in purge command by default ( #30891 )
...
Performing a manual ledger compaction can be very time consuming.
Although the compaction will optimize storage use, swapping to skip
compaction favors the command completing faster. Additionally, we no
longer do regular compaction in the validator (via LedgerCleanupService)
and instead make use of range deletion which is much more efficient.
Given the above, this changes alters the default behavior to skip ledger
compaction by default, and introduces a flag should a user really want
to run compaction.
2023-03-29 10:34:00 -05:00
dependabot[bot]
bcdf5dad47
Bump proptest from 1.0.0 to 1.1.0 ( #30956 )
...
Bumps [proptest](https://github.com/proptest-rs/proptest ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/proptest-rs/proptest/releases )
- [Changelog](https://github.com/proptest-rs/proptest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/proptest-rs/proptest/compare/1.0.0...v1.1.0 )
---
updated-dependencies:
- dependency-name: proptest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 09:20:48 -06:00
Brennan
0679db23ee
Abstract RPC bootstrap gossip exit into function ( #30948 )
2023-03-29 08:19:30 -07:00
Alexander Meißner
a6ad37f3ad
Cleanup - `load_and_get_programs_from_cache()` ( #30959 )
...
* Replaces assign_program() by replenish() in load_and_get_programs_from_cache().
* Replaces LoadedProgramEntry by a boolean.
* Only lock the global cache once all missing programs have been loaded
* Factors out call of self.rc.accounts.filter_executable_program_accounts().
2023-03-29 16:11:14 +02:00
steviez
4bd7de4887
Update comments around snapshot retention policy unit tests ( #30955 )
2023-03-29 08:55:05 -05:00
Jeff Washington (jwash)
823d55ea9f
disk index find_entry -> find_index_entry ( #30941 )
2023-03-29 06:54:03 -07:00
Pankaj Garg
f198d7426a
Use feature gate to set effective slot of loaded programs ( #30950 )
2023-03-29 04:47:49 -07:00
Ryo Onodera
2646fb72ed
Remove workaround for already-fixed clippy bug ( #30952 )
2023-03-29 13:45:27 +09:00
Kevin Ji
3713bb32b5
tpu-client: Fix counter for expired blockhash retries ( #30360 )
...
tpu-client: Fix counter for expired blockhash retries
The original counter would expire after saying "1 retry left", which was
misleading. We can safely change the comparison to >= 0 as our counter
is an i32.
2023-03-28 22:48:52 -05:00
Yihau Chen
2c842e9932
chore: workspace inheritance ( #30939 )
...
* client/Cargo.toml
* udp-client/Cargo.toml
* tpu-client/Cargo.toml
* thin-client/Cargo.toml
* storage-proto/Cargo.toml
* quic-client/Cargo.toml
* dos/Cargo.toml
* entry/Cargo.toml
* perf/Cargo.toml
* program-runtime/Cargo.toml
* program-test/Cargo.toml
* programs/address-lookup-table/Cargo.toml
* programs/loader-v3/Cargo.toml
* connection-cache/Cargo.toml
* programs/sbf/rust/big_mod_exp/Cargo.toml
* programs/zk-token-proof-tests/Cargo.toml
2023-03-29 03:28:56 +00:00
Kevin Heavey
6f73aafa09
Make BanksClient timeout after 10 seconds instead of 60 ( #30904 )
...
* don't increase the deadline by 50 seconds
* add test demonstrating a timeout panic
* add back missing Duration import for tests
* cargo fmt
* clarify test comments
* clarify comment
* make timeout test finish in 1 second
* sort dependencies
2023-03-28 17:55:44 -06:00
Andrew Fitzgerald
8e910b494f
Forwarder: separate get_leader_and_addr ( #30922 )
2023-03-28 16:34:36 -07:00
Illia Bobyr
564f8c9b17
ledger: Extract `BatchExecutionTiming` ( #30806 )
...
Extracted time metrics related to transaction execution into a separate
structure. This allows me to call `process_entries_with_callback()`
without locking the whole instance of `ConfirmationTiming`, passing just
the `BatchExecutionTiming` part.
I want to add a new metric that starts at the beginning of the
`confirm_slot_entries()` call and ends until the very end. In order to
use a `scopeguard::defer`, I need to be able to have an excursive
reference to it for the whole body of `confirm_slot_entries()`.
Plus a few minor renamings to clarify which verifications and results
variables actually store. And corrected a few messages, that
incorrectly stated PoH verification, while they were actually issued
for transaction verification failures.
2023-03-28 15:37:34 -07:00
Andrew Fitzgerald
b72be0f086
Forwarder: clean up packet_vec filter ( #30921 )
2023-03-28 14:54:04 -07:00
Tyera
932301583c
Plumb Entry notification into plugin manager ( #30910 )
...
Plumb entry notification into plugin manager
2023-03-28 14:53:27 -06:00
Brooks
1f420f2b03
Moves shrink after flush and clean ( #30918 )
2023-03-28 16:11:56 -04:00
Andrew Fitzgerald
2dfc46c71e
Forwarder: separate update_data_budget ( #30920 )
2023-03-28 12:58:39 -07:00
Jeff Washington (jwash)
6285aaee89
store data and index occupy in bitvec ( #30899 )
2023-03-28 12:17:28 -07:00
dependabot[bot]
4787b22bd6
Bump base64 from 0.13.0 to 0.13.1 ( #30931 )
...
* Bump base64 from 0.13.0 to 0.13.1
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.13.0...v0.13.1 )
---
updated-dependencies:
- dependency-name: base64
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* [auto-commit] Update all Cargo lock files
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-03-28 19:13:40 +00:00
Pankaj Garg
bf488eb384
Update documentation of instruction error and add a unit test ( #30915 )
...
* Update documentation of instruction error and add a unit test
* update test name
2023-03-28 11:54:49 -07:00
Pankaj Garg
035c974a8c
Remove redundant check during loading upgradeable program for writing ( #30561 )
...
* Remove redundant check during loading upgradeable program
* Apply clippy suggestion
2023-03-28 11:50:49 -07:00
Pankaj Garg
aebc191c38
Stop loading program accounts if program exists in cache ( #30703 )
...
* Stop loading program accounts if program exists in cache
* load accounts for upgradeable programs
* revert loader change to conditionally use program data account
* load instruction accounts
* generate TransactionExecutorCache from loaded programs
* cleanup account_found_and_dep_index variable
* address review comments
* handle tombstones in loader
* unify tombstone constructor
* handle multiple tombstones
2023-03-28 11:49:56 -07:00
Brooks
e7887cfb06
RootBankCache must use Acquire-Release semantics when accessing BankForks::root ( #30936 )
2023-03-28 14:35:02 -04:00
behzad nouri
359d9c7b9f
upgrades ahash to 0.8.3 ( #30935 )
2023-03-28 18:23:33 +00:00