mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-02 16:26:48 +00:00
fix(consensus): restore DisputedTx getYays/getNays accessors
Consensus.h (Phase 4 tracing) depends on DisputedTx::getYays()/getNays() to build disputeResolve span events. Both accessors were removed by earlier 'duplicate accessor' cleanup commits on this branch, leaving Consensus.h referencing non-existent members. CI caught this on macOS/clang-17/gcc-13/Windows builds. Restore the accessors on the branch where they were dropped so downstream phase branches inherit a compiling DisputedTx.h via merge. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -60,6 +60,20 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user