Log the last_id being voted on

This commit is contained in:
Michael Vines 2018-07-27 11:17:48 -07:00 committed by Grimes
parent 678b2870ff
commit 538c3b63e1
2 changed files with 2 additions and 2 deletions

View File

@ -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...
}
}

View File

@ -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)
}?;
{