diff --git a/src/xrpld/consensus/DisputedTx.h b/src/xrpld/consensus/DisputedTx.h index 807a3cbabe..08ba8eb063 100644 --- a/src/xrpld/consensus/DisputedTx.h +++ b/src/xrpld/consensus/DisputedTx.h @@ -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