behzad nouri
9524c9dbff
patches errors from clippy::uninlined_format_args
...
https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
2022-12-06 19:32:15 +00:00
behzad nouri
9433c06745
patches errors from clippy::unchecked_duration_subtraction
...
https://rust-lang.github.io/rust-clippy/master/index.html#unchecked_duration_subtraction
2022-12-06 19:32:15 +00:00
Tyera
c32377b5af
Split out quic- and udp-client definitions ( #28762 )
...
* Move ConnectionCache back to solana-client, and duplicate ThinClient, TpuClient there
* Dedupe thin_client modules
* Dedupe tpu_client modules
* Move TpuClient to TpuConnectionCache
* Move ThinClient to TpuConnectionCache
* Move TpuConnection and quic/udp trait implementations back to solana-client
* Remove enum_dispatch from solana-tpu-client
* Move udp-client to its own crate
* Move quic-client to its own crate
2022-11-18 12:21:45 -07:00
Jeff Biseda
15050b14b9
use signed repair request variants ( #28283 )
2022-10-10 14:09:45 -07:00
Will Hickey
4aa2a42cc7
Fix test_bench_tps_local_cluster_solana ( #27448 )
...
* Fix test_bench_tps_local_cluster_solana
* Remove #[ignore] annotations from dos tests (which are also fixed by this change)
* Remove #[ignore] annotations from local cluster tests (which are also fixed by this change)
2022-08-30 13:04:31 -05:00
Tyera Eulberg
b8b3d723da
Use new client crates ( #27360 )
...
* Update ancillary cli crates
* Update cli
* Update command-line tools
* Update rpc, etc
* Update client-test
* Update core, validator
* Update local-cluster
2022-08-24 10:47:02 -06:00
Will Hickey
dba2fd5a16
Enable QUIC client by default. Add arg to disable QUIC client. (Forward port #26927 ) ( #27194 )
...
Enable QUIC client by default. Add arg to disable QUIC client.
* Enable QUIC client by default. Add arg to disable QUIC client.
* Deprecate --disable-quic-servers arg
* Add #[ignore] annotation to failing tests
2022-08-19 09:15:15 -05:00
Will Hickey
0f4b858224
Revert "Enable QUIC client by default. Add arg to disable QUIC client… ( #26913 )
...
Revert "Enable QUIC client by default. Add arg to disable QUIC client. (#26879 )"
This reverts commit 4c29750095
.
2022-08-04 13:26:43 -05:00
Will Hickey
4c29750095
Enable QUIC client by default. Add arg to disable QUIC client. ( #26879 )
2022-08-03 10:39:55 -05:00
kirill lykov
e74ad90cdb
DoS tool: generate transactions using several threads ( #26286 )
...
* add cli arg num_gen_threads
* introduce many generating threads
* add sender thread
* add time measurments
* cleanup
* sort dependencies
* revisit threads termination
* make send_batch_size to be configurable
* update Cargo.lock
2022-08-01 16:04:19 +02:00
Jeff Biseda
857be1e237
sign repair requests ( #26833 )
2022-07-31 15:48:51 -07:00
Nick Rempel
7e4a5de99c
Refactor ConnectionCache::use_quic ( #26235 )
...
* Remove UseQuic type
Move to storing the UdpSocket on ConnectionCache and accepting a bool
* Remove use_quic from ConnectionCache constructor
Replace with separate with_udp constructor to force callers to choose
2022-07-05 10:49:42 -07:00
Pankaj Garg
43ff65ece9
Use single send socket in UdpTpuConnection ( #26105 )
2022-06-21 14:56:21 -07:00
kirill lykov
a9069244f5
replace send with sendmmsg ( #25585 )
...
* replace send with sendmmsg
* address PR comments
2022-06-21 09:51:48 +01:00
Lijun Wang
29b597cea5
Connection pool support in connection cache and QUIC connection reliability improvement ( #25793 )
...
* Connection pool in connection cache and handle connection errors
1. The connection not has a pool of connections per address, configurable, default 4
2. The connections per address share a lazy initialized endpoint
3. Handle connection issues better, avoid race conditions
4. Various log improvement for help debug connection issues
2022-06-10 09:25:24 -07:00
Jon Cinque
79a8ecd0ac
client: Remove static connection cache, plumb it instead ( #25667 )
...
* client: Remove static connection cache, plumb it instead
* Add TpuClient::new_with_connection_cache to not break downstream
* Refactor get_connection and RwLock into ConnectionCache
* Fix merge conflicts from new async TpuClient
* Remove `ConnectionCache::set_use_quic`
* Move DEFAULT_TPU_USE_QUIC to client, use ConnectionCache::default()
2022-06-08 13:57:12 +02:00
Michael Vines
b05c7d91ed
Fix derive_partial_eq_without_eq clippy lint
2022-05-22 22:22:21 -07:00
kirill lykov
82dd0eaf8b
Refactoring and extending functionality of DoS tool ( #24412 )
...
* move cli to separate file
* move rpc_client creation to function
* move rpc mode handling to separate function
* Separated unique transaction workflow, added keypairs generation
* use faucet to fund kp, add new transaction types
* update Cargo.lock
* update documentation
* fix clippy errors
* introduce num_instructions
* add cli tests
* clippy updates
* update Cargo.lock
* add cli tests for mode rpc
* address PR comments
* refactor mode rpc case
* formatting changes
* run_dos_rpc_mode with generics
* replaced &Option with Option&
* simplified nodes discovery
* formatting changes
* reduced number of iterations for random test
* address PR comments
2022-05-15 11:41:13 +02:00
sakridge
6cfa19e2e4
Skip generator if non-unique transactions ( #25039 )
2022-05-10 16:22:24 +02:00
Kirill Lykov
359e2de090
ignore heavy tests in dos
2022-03-22 20:19:28 +01:00
Kirill Lykov
c694703e14
address PR comments
2022-03-18 14:55:33 +01:00
Kirill Lykov
2da896fa40
add documentation
2022-03-18 14:55:33 +01:00
Kirill Lykov
7074ebf45a
address PR comments
2022-03-18 14:55:33 +01:00
klykov
957bc0db6b
add tests to dos tool
2022-03-18 14:55:33 +01:00
klykov
f5339882cb
refactor cmdline interface
2022-03-18 14:55:33 +01:00
klykov
a63dee87ec
add transaction parameters dump
2022-03-18 14:55:33 +01:00
klykov
1b0c9ad4c0
add option payer to dos tool
2022-03-18 14:55:33 +01:00
klykov
cf73f6dc74
fix typo in dos
2022-03-18 14:55:33 +01:00
klykov
dce5d1c1fa
avoid signatures if unnecessary in dos
2022-03-18 14:55:33 +01:00
klykov
1641d1d329
fix: cache blockhash in dos tool
2022-03-18 14:55:33 +01:00
klykov
cb537e80d7
add transaction options to dos
2022-03-18 14:55:33 +01:00
klykov
d4d95f1811
add valid blockhash option to dos
2022-03-18 14:55:33 +01:00
klykov
797c3324f0
add number of signatures to dos
2022-03-18 14:55:33 +01:00
buffalu
70ebab2c82
Add rustfmt.toml and `cargo fmt` ( #23238 )
...
* fmt
* formatted
Co-authored-by: Lucas B <buffalu@jito.network>
2022-02-19 13:32:29 +08:00
sakridge
93789ca5e5
Dos local-cluster test ( #22561 )
2022-02-01 15:26:55 +01:00
Michael Vines
b8837c04ec
Reformat imports to a consistent style for imports
...
rustfmt.toml configuration:
imports_granularity = "One"
group_imports = "One"
2021-12-03 09:19:13 -08:00
sakridge
b178f3f2d3
Fix dos data-type for non-gossip mode ( #20465 )
2021-10-06 18:49:53 +02:00
sakridge
94a1a57106
Add transaction mode to dos ( #20191 )
2021-09-29 23:46:55 +02:00
behzad nouri
d2d5f36a3c
adds validator flag to allow private ip addresses ( #18850 )
2021-07-23 15:25:03 +00:00
Alexander Meißner
6514096a67
chore: cargo +nightly clippy --fix -Z unstable-options
2021-06-18 10:42:46 -07:00
Tyera Eulberg
9a5330b7eb
Move gossip modules into solana-gossip crate ( #17352 )
...
* Move gossip modules to solana-gossip
* Update Protocol abi digest due to move
* Move gossip benches and hook up CI
* Remove unneeded Result entries
* Single use statements
2021-05-26 09:15:46 -06:00
behzad nouri
cf1acfb021
uses Duration type for gossip discover timeout
2021-05-22 19:17:36 +00:00
Trent Nelson
7f7370c306
Re-allow clippy::integer_arithmetic at crate-level
2021-02-17 13:55:08 -07:00
Michael Vines
959880db60
Remove unused pubkey::Pubkey imports
2020-10-21 19:08:13 -07:00
Michael Vines
7bc073defe
Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand`
2020-10-21 19:08:13 -07:00
sakridge
697e004e0d
Add feature to RPC dos ( #12119 )
2020-09-09 08:21:48 -07:00
Michael Vines
a1e2357d12
`solana-gossip spy` can now be given an identity keypair (`--identity` argument)
2020-08-22 17:00:50 -07:00
carllin
97f2bcff69
master: Add nonce to shreds repairs, add shred data size to header ( #10109 )
...
* Add nonce to shreds/repairs
* Add data shred size to header
Co-authored-by: Carl <carl@solana.com>
2020-05-19 12:38:18 -07:00
Kristofer Peterson
58ef02f02b
9951 clippy errors in the test suite ( #10030 )
...
automerge
2020-05-15 09:35:43 -07:00
Jack May
eb1acaf927
Remove archiver and storage program ( #9992 )
...
automerge
2020-05-14 18:22:47 -07:00