make proxy address configurable
This commit is contained in:
parent
88b6935319
commit
1d4e626dc8
|
@ -24,11 +24,11 @@ RUST_LOG="error,solana_streamer::nonblocking::quic=debug" solana-test-validator
|
|||
```
|
||||
3. run quic proxy
|
||||
```bash
|
||||
RUST_LOG=debug cargo run --bin solana-lite-rpc-quic-forward-proxy -- --identity-keypair /pathto-test-ledger/validator-keypair.json
|
||||
RUST_LOG=debug cargo run --bin solana-lite-rpc-quic-forward-proxy -- --proxy-rpc-addr 0.0.0.0:11111 --identity-keypair /pathto-test-ledger/validator-keypair.json
|
||||
```
|
||||
2. run lite-rpc
|
||||
```bash
|
||||
RUST_LOG=debug cargo run --bin lite-rpc
|
||||
RUST_LOG=debug cargo run --bin lite-rpc -- --experimental-quic-proxy-addr 127.0.0.1:11111
|
||||
```
|
||||
3. run rust bench tool in _lite-rpc_
|
||||
```bash
|
||||
|
|
|
@ -7,6 +7,8 @@ use solana_sdk::signature::Keypair;
|
|||
pub struct Args {
|
||||
#[arg(short = 'k', long, default_value_t = String::new())]
|
||||
pub identity_keypair: String,
|
||||
#[arg(short = 'l', long)]
|
||||
pub proxy_rpc_addr: String,
|
||||
}
|
||||
|
||||
// note this is duplicated from lite-rpc module
|
||||
|
|
|
@ -32,12 +32,13 @@ pub async fn main() -> anyhow::Result<()> {
|
|||
|
||||
let Args {
|
||||
identity_keypair,
|
||||
proxy_rpc_addr,
|
||||
} = Args::parse();
|
||||
|
||||
dotenv().ok();
|
||||
|
||||
// TODO build args struct dedicyted to proxy
|
||||
let proxy_listener_addr = "127.0.0.1:11111".parse().unwrap();
|
||||
let proxy_listener_addr = proxy_rpc_addr.parse().unwrap();
|
||||
let tls_configuration = SelfSignedTlsConfigProvider::new_singleton_self_signed_localhost();
|
||||
let validator_identity =
|
||||
ValidatorIdentity::new(get_identity_keypair(&identity_keypair).await);
|
||||
|
|
Loading…
Reference in New Issue