remove drone port magic number

This commit is contained in:
Stephen Akridge
2018-07-18 12:38:18 -07:00
committed by sakridge
parent cc229b535d
commit 2348733d6c
4 changed files with 7 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ use bincode::serialize;
use clap::{App, Arg};
use rayon::prelude::*;
use solana::crdt::{Crdt, NodeInfo};
use solana::drone::DroneRequest;
use solana::drone::{DroneRequest, DRONE_PORT};
use solana::fullnode::Config;
use solana::hash::Hash;
use solana::nat::{udp_public_bind, udp_random_bind};
@@ -220,7 +220,7 @@ fn main() {
}
let mut drone_addr = leader.contact_info.tpu;
drone_addr.set_port(9900);
drone_addr.set_port(DRONE_PORT);
let signal = Arc::new(AtomicBool::new(false));
let mut c_threads = vec![];