Nick Frostbutter
4564bcdc1a
[docs] state compression and compressed nfts ( #31027 )
...
* feat: added doc for state compression
* feat: added guide for compressed nfts
* fix: updates sidebar for new docs
* fix: added link to example repo
* fix: fixed typos
---------
Co-authored-by: nickfrosty <nick.frostbutter@solana.org>
2023-04-06 08:52:31 -05:00
Brooks
4452ba59b0
contributing: Is your PR easy to say "yes" to? ( #31059 )
...
Co-authored-by: mvines <mvines@gmail.com>
Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2023-04-06 08:43:22 -04:00
Jarry Xiao
e14f77790b
Improve keygen grind algo by 10% ( #30365 )
...
* Improve algo by 10%
* Fix fmt
* remove trailing whitespace
* Update keygen/src/keygen.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Fix pubkey! macro usage
* Apply suggestions from code review
Co-authored-by: Kevin Ji <1146876+kevinji@users.noreply.github.com>
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
---------
Co-authored-by: mvines <mvines@gmail.com>
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
Co-authored-by: Tyera <teulberg@gmail.com>
Co-authored-by: Kevin Ji <1146876+kevinji@users.noreply.github.com>
2023-04-05 22:36:13 -06:00
Ashwin Sekar
85dbd3d94d
Add stake breakdown to metrics for HeaviestForkFailures ( #31067 )
2023-04-05 20:35:12 -06:00
samkim-crypto
0ff8a09041
[keygen] refactor argument parsing logic into separate `app(...)` function and add tests ( #31015 )
...
* refactor argument parsing and processing for testing
* add tests for command verify
* add tests for command pubkey
* add tests for command new
* add tests for command grind
* clippy
* be explicit about types
* use `try_get_matches` and tempfile
* clippy
* call `Error::exit` on error from `try_get_matches`
2023-04-06 07:43:52 +09:00
samkim-crypto
d67fa6c470
[clap-v3-utils] Define `EncodableKey` and make `keypair_from_path` and `keypair_from_seed` generic functions ( #30947 )
...
* generalize `Keypair` to using `EncodableKey` trait in clap-v3-utils
* add associated `Pubkey` type to `EncodableKey`
* remove associated type `Pubkey` from `EncodableKey`
* rename `EncodableKey` associated function names
* remove default overrides for `{read,write}_file`
* resolve dependencies for test
* remove `pubkey_string` from `EncodableKey` trait
2023-04-06 07:42:11 +09:00
Tyera
a7878313b8
Bump hidapi from 1.4.1 to 2.2.0 ( #31022 )
...
Bump hidapi to v2.2.0
2023-04-05 11:47:29 -06:00
Pankaj Garg
83e17d8e44
Add expiration slot to loaded program cache entry ( #31034 )
2023-04-05 09:26:28 -07:00
joeaba
9df1ac9d60
fix session timeout ( #31057 )
...
* fix session timeout
2023-04-05 11:12:29 -05:00
Andrew Fitzgerald
65d9238e31
remove pub from to_packet_batches_for_tests ( #31056 )
2023-04-05 08:57:17 -07:00
sakridge
e575650d47
Add connection error metrics ( #31049 )
2023-04-05 16:40:31 +02:00
HaoranYi
684901879d
Refactor squash timing report ( #31041 )
...
* typo
* refactor squash timing report
* address review comments
2023-04-05 08:53:49 -05:00
Alexander Meißner
24a87f33a8
Refactor - Cleanup error handling in program runtime ( #30693 )
...
* Moves stable_log::program_invoke(), stable_log::program_success() and stable_log::program_failure() calls from bpf_loader into InvokeContext::process_executable_chain().
* Turns result of ProcessInstructionWithContext from InstructionError into Box<dyn std::error::Error>.
* Bump to solana_rbpf v0.3.0
* Removes Result from return type of EbpfVm::new().
* Turns EbpfError into Box<dyn std::error::Error>.
* Removes BpfError.
* Removes SyscallError::InstructionError.
* Adds a type alias for Box<dyn std::error::Error> in syscalls.
2023-04-05 15:50:34 +02:00
Jeff Washington (jwash)
06461fb348
disk index: index files grow by bytes instead of doubling ( #31013 )
2023-04-05 06:30:37 -07:00
Yihau Chen
7d17d7094a
ci: improve uploading test results ( #31061 )
...
* ci: ignore cargo2junit error
* ci: easing sanitized rules
2023-04-05 10:25:36 +00:00
Brennan
60c4a718a5
enhance replay partition metrics ( #31010 )
...
* enhance replay partition metrics
2023-04-04 19:57:09 -07:00
Jeff Washington (jwash)
9fb22bc0be
disk index: store ref_count in data file ( #30974 )
2023-04-04 19:17:48 -07:00
ananas-block
c4648f5a26
bump arkworks deps to version 0.4.0 ( #30536 )
...
* bump ark-works 0.4.0
* removed obsolete commented code
* bumped deps again after rebase
* paring: merged two vectors into one
* added zero serialization test
* reverted formatting change
* updated Cargo.lock after rebase
* fixed Cargo.lock
2023-04-04 20:16:47 -06:00
Xiang Zhu
fac76715e9
bank_from_snapshot_dir returns BankFromDirTimings ( #31051 )
2023-04-04 17:10:56 -07:00
Tyera
c98b7f0c46
Only pass num_transactions to EntryNotifier ( #31053 )
...
* Add EntrySummary struct
* Add new entry struct to send to notifier
2023-04-04 18:00:47 -06:00
Ashwin Sekar
9cbaf0e234
Rename DeadSlotAncestorRequestStatus -> AncestorRequestStatus ( #31050 )
2023-04-04 20:48:45 +00:00
Jeff Washington (jwash)
fd28fd1d34
disk index: move capacity to contents ( #31040 )
2023-04-04 13:08:13 -07:00
Brooks
aa8d7de2d1
Uses impl_crds_entry! for SnapshotHashes ( #31032 )
2023-04-04 14:44:05 -04:00
Alexander Meißner
911489d373
Feature - Stop truncating strings in syscalls ( #31030 )
...
* Adds the feature gate stop_truncating_strings_in_syscalls.
* Removes the truncation of everything after the first NULL byte in translate_string_and_do().
2023-04-04 19:33:53 +02:00
Jeff Washington (jwash)
aa3e0b9c20
disk index: add stat: disk_index_failed_resizes ( #31039 )
2023-04-04 09:39:06 -07:00
Jeff Washington (jwash)
514816a31f
disk index: move key enum to bitvec ( #31026 )
2023-04-04 08:21:29 -07:00
joeaba
80b25726e1
update metrics status scripts ( #31037 )
...
* update metrics status scripts
* add exit condition
2023-04-04 09:03:57 -05:00
Jeff Washington (jwash)
b0540ff5ad
disk index: add `Capacity` ( #31031 )
...
* disk index: add `Capacity`
* pr feedback
2023-04-04 06:57:09 -07:00
Jeff Washington (jwash)
bc343a431c
disk index: set_anticipated_count to optimally grow disk buckets at startup ( #31033 )
...
* disk index: set_anticipated_count to optimally grow disk buckets at startup
* remove atomic
2023-04-03 20:28:50 -07:00
Tyera
3442f184f7
Remove unneeded `clippy::new_ret_no_self` allows ( #31035 )
...
Remove unneeded allows
2023-04-03 20:35:20 -06:00
Brooks
e8ea722061
Uses AccountsHashes type for AccountsHashes CrdsData variant ( #31003 )
2023-04-03 16:42:21 -04:00
Jeff Washington (jwash)
05f2a01a80
disk index: refactor OccupiedEnumTag ( #31028 )
2023-04-03 13:12:06 -07:00
Proph3t
ab8d3066a5
Improve poh.rs readability ( #30298 )
...
* chore: factor out variable hashes per tick to a constant
* chore: add units to `elapsed` in `compute_hashes_per_tick`
2023-04-03 12:12:41 -07:00
Jeff Washington (jwash)
f289a0726b
disk index: refactoring get/get_mut fns ( #31025 )
2023-04-03 11:40:49 -07:00
Jeff Washington (jwash)
7edef94088
disk index: remove Option on read_value ( #31023 )
2023-04-03 11:36:58 -07:00
Jeff Washington (jwash)
ef6b6793dd
disk bucket: add trait fn copying_entry ( #31024 )
2023-04-03 11:35:15 -07:00
Alexander Meißner
a0c7fde90e
Cleanup - mock InvokeContext ( #31007 )
...
* Turns with_mock_invoke_context() into a macro.
* Removes prepare_mock_invoke_context().
* Replaces InvokeContext::new_mock() with with_mock_invoke_context().
* Removes InvokeContext::new_mock().
* Removes Cow from InvokeContext::sysvar_cache.
* Removes override parameters from mock_process_instruction().
* cargo fmt
2023-04-03 17:23:24 +02:00
Jeff Washington (jwash)
9219a16c42
disk bucket: new_map takes bytes ( #31020 )
2023-04-03 06:57:06 -07:00
Jeff Washington (jwash)
8051aea88e
disk index: store single slot list in index entry ( #31002 )
2023-04-03 06:51:59 -07:00
Jeff Washington (jwash)
07f4789257
fix assert ( #31012 )
2023-04-03 06:40:54 -07:00
behzad nouri
3cb22458f8
generalizes sample-size in quic::ConnectionTable::prune_random ( #31011 )
...
Even if there are many connections with stake less than the
threshold_stake, prune_random might still reject if both randomly
sampled connections have stake bigger than the threshold. A bigger
sample-size will make this less likely (at the cost of more
computations):
https://github.com/solana-labs/solana/blob/2cbd5d6c9/streamer/src/nonblocking/quic.rs#L958-L985
In order to benchmark for an optimal sample-size, the commit generalizes
the sample-size and makes it configurable.
2023-04-03 13:33:12 +00:00
Dmitri Makarov
8c860e9894
Bump platform-tools version to v1.37 ( #31017 )
2023-04-01 12:08:03 -04:00
Dmitri Makarov
2cbd5d6c9b
Output all trace frames instead of last one from rbpf-cli ( #31005 )
2023-03-31 12:52:49 -07:00
Jeff Biseda
0e2c6c8989
ammend clarifying comment for duplicate instance detection ( #31008 )
2023-03-31 12:50:04 -07:00
Jeff Washington (jwash)
9600643860
reduce contention on startup index generation ( #31006 )
2023-03-31 12:46:42 -07:00
Jeff Washington (jwash)
fc2bcdffe2
fix up refcounts on disk bucket test ( #31001 )
2023-03-31 12:37:21 -07:00
behzad nouri
8a96b91515
simplifies quic::ConnectionTable::prune_oldest ( #30995 )
2023-03-31 18:24:37 +00:00
Jeff Washington (jwash)
a2797ebfa9
disk index: use bits in ref count to store occupied ( #31004 )
2023-03-31 10:50:55 -07:00
Pankaj Garg
a2f3a219d8
SBF test that runs with stable bank and genesis to produce deterministic hash ( #30945 )
...
* SBF test that runs with stable bank and genesis to produce deterministic hash
* fix warning
* ignore the test
2023-03-31 10:13:11 -07:00
Jeff Washington (jwash)
db5cdbedae
disk index remove dead code ( #30999 )
2023-03-31 09:08:16 -07:00