mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Prettify.
This commit is contained in:
@@ -125,25 +125,25 @@ void LCTransaction::setVote(const uint160& peer, bool votesYes)
|
|||||||
{ // new vote
|
{ // new vote
|
||||||
if (votesYes)
|
if (votesYes)
|
||||||
{
|
{
|
||||||
Log(lsTRACE) << "Peer " << peer.GetHex() << "votes YES on " << mTransactionID.GetHex();
|
Log(lsTRACE) << "Peer " << peer.GetHex() << " votes YES on " << mTransactionID.GetHex();
|
||||||
++mYays;
|
++mYays;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log(lsTRACE) << "Peer " << peer.GetHex() << "votes NO on " << mTransactionID.GetHex();
|
Log(lsTRACE) << "Peer " << peer.GetHex() << " votes NO on " << mTransactionID.GetHex();
|
||||||
++mNays;
|
++mNays;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (votesYes && !res.first->second)
|
else if (votesYes && !res.first->second)
|
||||||
{ // changes vote to yes
|
{ // changes vote to yes
|
||||||
Log(lsTRACE) << "Peer " << peer.GetHex() << "now votes YES on " << mTransactionID.GetHex();
|
Log(lsTRACE) << "Peer " << peer.GetHex() << " now votes YES on " << mTransactionID.GetHex();
|
||||||
--mNays;
|
--mNays;
|
||||||
++mYays;
|
++mYays;
|
||||||
res.first->second = true;
|
res.first->second = true;
|
||||||
}
|
}
|
||||||
else if(!votesYes && !res.first->second)
|
else if(!votesYes && !res.first->second)
|
||||||
{ // changes vote to no
|
{ // changes vote to no
|
||||||
Log(lsTRACE) << "Peer " << peer.GetHex() << "now votes NO on " << mTransactionID.GetHex();
|
Log(lsTRACE) << "Peer " << peer.GetHex() << " now votes NO on " << mTransactionID.GetHex();
|
||||||
++mNays;
|
++mNays;
|
||||||
--mYays;
|
--mYays;
|
||||||
res.first->second = false;
|
res.first->second = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user