Kevin Ji
cd51499ab9
Use Ipv4Addr constants in socketaddr! ( #30095 )
2023-02-02 16:48:21 -07:00
Kevin Ji
75ba03b8d2
faucet: Remove unused FAUCET_PORT_STR const ( #30005 )
2023-01-31 09:04:03 -08:00
Illia Bobyr
8fafbb0a06
doc: Fix documentation warnings and add some links ( #29887 )
2023-01-25 23:15:58 -08:00
Kevin Ji
dd92f225bb
Use Ipv4Addr::{LOCALHOST, UNSPECIFIED} constants ( #29813 )
2023-01-23 16:49:51 -06:00
behzad nouri
272e667cb2
deprecates Pubkey::new in favor of Pubkey::{,try_}from ( #29805 )
...
The commit deprecates Pubkey::new which lacks type-safety and instead
implements TryFrom<&[u8]> and TryFrom<Vec<u8>> for Pubkey.
2023-01-21 18:06:27 +00:00
Kevin Ji
f4339bc0f2
faucet: Expose time-slice, per-time-cap, and per-request-cap in test validator ( #29812 )
2023-01-21 08:18:49 -08:00
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
78089941ff
adds validator version to set_panic_hook ( #23082 )
2022-02-11 18:04:10 +00:00
Jeff Biseda
8b66625c95
convert std::sync::mpsc to crossbeam_channel ( #22264 )
2022-01-11 02:44:46 -08: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
Michael Vines
7027d56064
Resolve nightly-2021-10-05 clippy complaints
2021-10-06 10:37:58 -07:00
Alexander Meißner
6514096a67
chore: cargo +nightly clippy --fix -Z unstable-options
2021-06-18 10:42:46 -07:00
Tyera Eulberg
36574c30ef
Add allowed-ip list to faucet ( #16891 )
2021-04-28 01:31:32 +00:00
Tyera Eulberg
fffff2cd75
Add address_cache and exclude loopback from ip limit ( #16487 )
2021-04-12 19:59:38 +00:00
Tyera Eulberg
03d3ae1cb9
Faucet: repurpose cap and slice args to apply to single IPs ( #16381 )
...
* Single use stmt
* Log request IP
* Switch cap and slice to apply per IP
* Use SOL in logs, error msgs
* Use thiserror instead of overloading io::Error
* Return memo transaction for requests that exceed per-request-cap
* Handle faucet memos in cli
* Add some docs, esp about memo transaction
* Use SOL symbol & standardize memo
Co-authored-by: Michael Vines <mvines@gmail.com>
* Differentiate faucet tx-length errors
* Populate signature in cli airdrop memo case
Co-authored-by: Michael Vines <mvines@gmail.com>
2021-04-06 07:01:05 +00:00
Michael Vines
8993ac0c74
Surface faucet start failures to the user of solana-test-validator
2021-01-28 22:35:58 +00:00
Tyera Eulberg
d63dd95806
Rewrite faucet with tokio v0.3 ( #14336 )
...
* Rewrite faucet for contemporary tokio
* Move away from framed decoder
2020-12-29 20:51:01 -07:00
Michael Vines
7143aaa89b
Clippy
2020-12-14 08:03:29 -08:00
Michael Vines
9f2d154588
Rework TestValidator API to be more like ProgramTest
2020-12-13 07:45:55 +00:00
Michael Vines
e9e5ee4362
Use default client keypair if --keypair argument is not provided
2020-11-16 11:00:40 -08:00
Michael Vines
7bc073defe
Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand`
2020-10-21 19:08:13 -07:00
Trent Nelson
87de82ac94
faucet: Use checked math in request limiter
2020-10-06 12:55:04 -06:00
Trent Nelson
5ae704d560
faucet: Add failing test case
2020-10-06 12:55:04 -06:00
Justin Starry
f6cda2579f
Fix off-by-one max payload checks
2020-09-16 12:46:06 -07:00
Trent Nelson
af2262cbba
Faucet: Improve error handling
2020-09-14 18:26:52 -06:00
Tyera Eulberg
71d5409b3b
Faucet: Add per-request cap ( #11665 )
...
* Add per-request cap; also use clap-utils
* Clean up arg names and take cap inputs as SOL
2020-08-17 17:33:14 -06:00
Greg Fitzgerald
1c498369b5
Remove fee-payer guesswork from Message and Transaction ( #10776 )
...
* Make Message::new_with_payer the default constructor
* Remove Transaction::new_[un]signed_instructions
These guess the fee-payer instead of stating it explicitly
2020-06-24 14:52:38 -06:00
Kristofer Peterson
e23340d89e
Clippy cleanup for all targets and nighly rust (also support 1.44.0) ( #10445 )
...
* address warnings from 'rustup run beta cargo clippy --workspace'
minor refactoring in:
- cli/src/cli.rs
- cli/src/offline/blockhash_query.rs
- logger/src/lib.rs
- runtime/src/accounts_db.rs
expect some performance improvement AccountsDB::clean_accounts()
* address warnings from 'rustup run beta cargo clippy --workspace --tests'
* address warnings from 'rustup run nightly cargo clippy --workspace --all-targets'
* rustfmt
* fix warning stragglers
* properly fix clippy warnings test_vote_subscribe()
replace ref-to-arc with ref parameters where arc not cloned
* Remove lock around JsonRpcRequestProcessor (#10417 )
automerge
* make ancestors parameter optional to avoid forcing construction of empty hash maps
Co-authored-by: Greg Fitzgerald <greg@solana.com>
2020-06-09 09:38:14 +09:00
Kristofer Peterson
58ef02f02b
9951 clippy errors in the test suite ( #10030 )
...
automerge
2020-05-15 09:35:43 -07:00
Michael Vines
2521f75c18
Advertise node software version in gossip ( #9981 )
...
* Advertise node version in gossip
* Remove solana_clap_utils::version! macro
2020-05-11 15:02:01 -07:00
Jack May
6eb4973780
Don't use move semantics if not needed ( #8793 )
2020-03-11 14:37:23 -07:00
Tyera Eulberg
ab361a8073
Rename KeypairUtil to Signer ( #8360 )
...
automerge
2020-02-20 13:28:55 -08:00
Greg Fitzgerald
127553ce4b
Wrap ed25519_dalek::Keypair ( #8247 )
2020-02-12 14:15:12 -07:00
Michael Vines
c576a707b0
Increase token cap ( #7855 )
...
automerge
2020-01-16 23:02:05 -08:00
Jack May
07855e3125
Allow override of RUST_LOG ( #7705 )
2020-01-08 09:19:12 -08:00
Tyera Eulberg
6ca575b5a3
Make sol-to-lamport const name more clear ( #7641 )
...
automerge
2019-12-30 11:28:41 -08:00
Tyera Eulberg
3513f4ee84
Rename drone to faucet ( #7508 )
2019-12-16 14:05:17 -07:00