Skip to content

Commit

Permalink
fixup! fixup! bug?: Change how "received validations" are counted:
Browse files Browse the repository at this point in the history
  • Loading branch information
ximinez committed Oct 24, 2024
1 parent 8028ea9 commit 00dca00
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/ripple/app/misc/impl/AmendmentTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,10 +860,6 @@ AmendmentTableImpl::doVoting(
majorityTime = it->second;
}

JLOG(j_.debug()) << "Amendment " << entry.second.name << " ("
<< entry.first << ") has " << vote->votes(entry.first)
<< " votes";

if (enabledAmendments.count(entry.first) != 0)
{
JLOG(j_.trace()) << entry.first << ": amendment already enabled";
Expand All @@ -875,9 +871,15 @@ AmendmentTableImpl::doVoting(
<< " (May be a false alarm if recently enabled "
"and some validators are offline)";
}

continue;
}
else if (
hasValMajority && (majorityTime == NetClock::time_point{}) &&

JLOG(j_.debug()) << "Amendment " << entry.first << " ("
<< entry.second.name << ") has "
<< vote->votes(entry.first) << " votes";

if (hasValMajority && (majorityTime == NetClock::time_point{}) &&
entry.second.vote == AmendmentVote::up)
{
// Ledger says no majority, validators say yes
Expand Down

0 comments on commit 00dca00

Please sign in to comment.