mirror of
https://github.com/Xahau/xahaud.git
synced 2026-09-27 23:48:05 +00:00
fix(build): reconcile harness logging and send-hook signatures
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user