Don't print worker_index when not an obligations vote (#987)

DEBUG is printing:

    Signature accepted for checkpointing voter n/<pubkey> voting  for worker NNNNN at height H

where NNNNN is some random 16-bit number.
This commit is contained in:
Jason Rhinelander 2019-12-18 19:40:49 -04:00 committed by Doyle
parent 19c562f800
commit ac784faeb3
1 changed files with 3 additions and 1 deletions

View File

@ -436,7 +436,9 @@ namespace service_nodes
result = crypto::check_signature(hash, key, vote.signature);
if (result)
MDEBUG("Signature accepted for " << vote.type << " voter " << vote.index_in_group << "/" << key << " voting for worker " << vote.state_change.worker_index << " at height " << vote.block_height);
MDEBUG("Signature accepted for " << vote.type << " voter " << vote.index_in_group << "/" << key
<< (vote.type == quorum_type::obligations ? " voting for worker " + std::to_string(vote.state_change.worker_index) : "")
<< " at height " << vote.block_height);
else
vvc.m_signature_not_valid = true;