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:
Pratik Mankawde
2026-05-13 12:11:52 +01:00
parent dd4911ef5e
commit 4bbe28cb92

View File

@@ -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