fix(build): reconcile harness logging and send-hook signatures

This commit is contained in:
Nicholas Dudfield
2026-09-18 15:48:54 +07:00
parent aa5a2783f4
commit ae8e6956ce
3 changed files with 6 additions and 2 deletions

View File

@@ -3419,13 +3419,17 @@ NetworkOPsImp::reportConsensusStateChangeIfNeeded(
{
std::scoped_lock const lock(lastConsensusPhaseMutex_);
if (logPhase)
{
CLOG(clog) << "consensus phase " << to_string(mLastConsensusPhase);
}
if (mLastConsensusPhase != phase)
{
reportConsensusStateChange(phase);
mLastConsensusPhase = phase;
if (logPhase)
{
CLOG(clog) << " changed to " << to_string(mLastConsensusPhase);
}
}
}

View File

@@ -270,7 +270,7 @@ PeerImp::stop()
//------------------------------------------------------------------------------
void
PeerImp::notifySendHook(Message const& message, std::string const& stage) const
PeerImp::notifySendHook(Message& message, std::string const& stage) const
{
if (auto const& hook = app_.config().harnessPeerSend)
{

View File

@@ -451,7 +451,7 @@ private:
sendDirect(std::shared_ptr<Message> const& m);
void
notifySendHook(Message const& message, std::string const& stage) const;
notifySendHook(Message& message, std::string const& stage) const;
void
notifyLifecycleHook(