Rename --rpc arg to --rpc-port to match wallet cli
This commit is contained in:
parent
825d8ef6c9
commit
9c8e853567
|
@ -179,11 +179,11 @@ fn main() {
|
|||
.help("Use DIR as persistent ledger location"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("rpc")
|
||||
.long("rpc")
|
||||
Arg::with_name("rpc_port")
|
||||
.long("rpc-port")
|
||||
.value_name("PORT")
|
||||
.takes_value(true)
|
||||
.help("Custom RPC port for this node"),
|
||||
.help("RPC port to use for this node"),
|
||||
)
|
||||
.get_matches();
|
||||
|
||||
|
@ -207,7 +207,7 @@ fn main() {
|
|||
let mut leader_scheduler = LeaderScheduler::default();
|
||||
leader_scheduler.use_only_bootstrap_leader = use_only_bootstrap_leader;
|
||||
|
||||
let rpc_port = if let Some(port) = matches.value_of("rpc") {
|
||||
let rpc_port = if let Some(port) = matches.value_of("rpc_port") {
|
||||
let port_number = port.to_string().parse().expect("integer");
|
||||
if port_number == 0 {
|
||||
eprintln!("Invalid RPC port requested: {:?}", port);
|
||||
|
|
|
@ -53,7 +53,7 @@ $program \
|
|||
$maybe_no_leader_rotation \
|
||||
--identity "$SOLANA_CONFIG_DIR"/bootstrap-leader.json \
|
||||
--ledger "$SOLANA_CONFIG_DIR"/bootstrap-leader-ledger \
|
||||
--rpc 8899 \
|
||||
--rpc-port 8899 \
|
||||
> >($bootstrap_leader_logger) 2>&1 &
|
||||
pid=$!
|
||||
oom_score_adj "$pid" 1000
|
||||
|
|
|
@ -50,7 +50,7 @@ fi
|
|||
|
||||
maybe_rpc_port=
|
||||
if [[ $1 = --rpc-port ]]; then
|
||||
maybe_rpc_port="--rpc $2"
|
||||
maybe_rpc_port="$1 $2"
|
||||
shift 2
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue