From 538c3b63e1a8b297d169b06bce80e50717a80698 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 27 Jul 2018 11:17:48 -0700 Subject: [PATCH] Log the last_id being voted on --- src/bank.rs | 2 +- src/vote_stage.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bank.rs b/src/bank.rs index 517c80d43a..68d49b11b4 100644 --- a/src/bank.rs +++ b/src/bank.rs @@ -259,7 +259,7 @@ impl Bank { let _ = self.apply_signature(tx.from, *tx_sig); } Instruction::NewVote(_vote) => { - info!("GOT VOTE!"); + info!("GOT VOTE! last_id={:?}", &tx.last_id[..8]); // TODO: record the vote in the stake table... } } diff --git a/src/vote_stage.rs b/src/vote_stage.rs index 7f1567a170..97b60f7026 100644 --- a/src/vote_stage.rs +++ b/src/vote_stage.rs @@ -74,7 +74,7 @@ impl VoteStage { let (vote, addr) = { let mut wcrdt = crdt.write().unwrap(); //TODO: doesn't seem like there is a synchronous call to get height and id - info!("replicate_stage {:?}", &last_id[..8]); + info!("voting on {:?}", &last_id[..8]); wcrdt.new_vote(*last_id) }?; {