Purge EventProcessor from RPU

This commit is contained in:
Greg Fitzgerald
2018-05-14 14:35:25 -06:00
parent 17cc9ab07f
commit 685de30047
3 changed files with 17 additions and 30 deletions

View File

@@ -10,7 +10,6 @@ use solana::accountant::Accountant;
use solana::crdt::ReplicatedData;
use solana::entry::Entry;
use solana::event::Event;
use solana::event_processor::EventProcessor;
use solana::rpu::Rpu;
use solana::signature::{KeyPair, KeyPairUtil};
use std::env;
@@ -116,10 +115,8 @@ fn main() {
eprintln!("creating networking stack...");
let event_processor =
EventProcessor::new(accountant, &last_id, Some(Duration::from_millis(1000)));
let exit = Arc::new(AtomicBool::new(false));
let rpu = Rpu::new(event_processor);
let rpu = Rpu::new(accountant, last_id, Some(Duration::from_millis(1000)));
let serve_sock = UdpSocket::bind(&serve_addr).unwrap();
let gossip_sock = UdpSocket::bind(&gossip_addr).unwrap();
let replicate_sock = UdpSocket::bind(&replicate_addr).unwrap();