aws demo2

This commit is contained in:
Anatoly Yakovenko 2018-05-23 22:04:19 +00:00 committed by Greg Fitzgerald
parent c9113b381d
commit 5c3ceb8355
1 changed files with 3 additions and 1 deletions

View File

@ -164,6 +164,7 @@ fn main() {
sleep(Duration::new(1, 0)); sleep(Duration::new(1, 0));
} }
for val in validators { for val in validators {
println!("Checking balance on {} ...", val.events_addr);
let mut client = mk_client(&client_addr, &val); let mut client = mk_client(&client_addr, &val);
let mut tx_count = client.transaction_count(); let mut tx_count = client.transaction_count();
duration = now.elapsed(); duration = now.elapsed();
@ -213,6 +214,7 @@ fn converge(
threads: &mut Vec<JoinHandle<()>>, threads: &mut Vec<JoinHandle<()>>,
) -> Vec<ReplicatedData> { ) -> Vec<ReplicatedData> {
//lets spy on the network //lets spy on the network
let daddr = "0.0.0.0:0".parse().unwrap();
let (spy, spy_gossip) = spy_node(client_addr); let (spy, spy_gossip) = spy_node(client_addr);
let me = spy.id.clone(); let me = spy.id.clone();
let mut spy_crdt = Crdt::new(spy); let mut spy_crdt = Crdt::new(spy);
@ -240,7 +242,7 @@ fn converge(
.table .table
.values() .values()
.into_iter() .into_iter()
.filter(|x| x.id != me) .filter(|x| x.requests_addr != daddr)
.map(|x| x.clone()) .map(|x| x.clone())
.collect(); .collect();
v.clone() v.clone()