mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-28 01:20:32 +00:00
fix(consensus): drop DisputedTx accessor churn unrelated to log correlation
The getYays()/getNays() accessors already exist on the phase-7 branch. A cleanup+restore pair on this branch moved them, producing a no-op diff against phase-7 that mixed consensus churn into the log-correlation PR. Restore DisputedTx.h to the phase-7 state so this branch carries no unrelated consensus change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -65,20 +65,6 @@ public:
|
||||
return ourVote_;
|
||||
}
|
||||
|
||||
//! Number of peers voting to include the transaction.
|
||||
[[nodiscard]] int
|
||||
getYays() const
|
||||
{
|
||||
return yays_;
|
||||
}
|
||||
|
||||
//! Number of peers voting to exclude the transaction.
|
||||
[[nodiscard]] int
|
||||
getNays() const
|
||||
{
|
||||
return nays_;
|
||||
}
|
||||
|
||||
//! Are we and our peers "stalled" where we probably won't change
|
||||
//! our vote?
|
||||
[[nodiscard]] bool
|
||||
@@ -195,6 +181,20 @@ public:
|
||||
[[nodiscard]] json::Value
|
||||
getJson() const;
|
||||
|
||||
//! Number of peers voting yes.
|
||||
[[nodiscard]] int
|
||||
getYays() const
|
||||
{
|
||||
return yays_;
|
||||
}
|
||||
|
||||
//! Number of peers voting no.
|
||||
[[nodiscard]] int
|
||||
getNays() const
|
||||
{
|
||||
return nays_;
|
||||
}
|
||||
|
||||
private:
|
||||
int yays_{0}; //< Number of yes votes
|
||||
int nays_{0}; //< Number of no votes
|
||||
|
||||
Reference in New Issue
Block a user