@@ -183,7 +183,7 @@ void protocol_block_in_31800::do_purge(peer_t) NOEXCEPT
183183
184184 if (!map_->empty ())
185185 {
186- LOGV (" Purge work (" << map_->size () << " ) from [" << authority () << " ]." );
186+ LOGV (" Purge work (" << map_->size () << " ) from [" << opposite () << " ]." );
187187 map_->clear ();
188188 stop (error::sacrificed_channel);
189189 }
@@ -196,7 +196,7 @@ void protocol_block_in_31800::do_split(peer_t) NOEXCEPT
196196 if (stopped ())
197197 return ;
198198
199- LOGV (" Divide work (" << map_->size () << " ) from [" << authority () << " ]." );
199+ LOGV (" Divide work (" << map_->size () << " ) from [" << opposite () << " ]." );
200200 restore (chaser_check::split (map_));
201201 restore (map_);
202202 map_ = chaser_check::empty_map ();
@@ -209,7 +209,7 @@ void protocol_block_in_31800::do_report(count_t sequence) NOEXCEPT
209209
210210 // Uses application logging since it outputs to a runtime option.
211211 LOGA (" Work report [" << sequence << " ] is (" << map_->size () << " ) for ["
212- << authority () << " ]." );
212+ << opposite () << " ]." );
213213}
214214
215215// request hashes
@@ -279,7 +279,7 @@ bool protocol_block_in_31800::handle_receive_block(const code& ec,
279279 {
280280 // Allow unrequested block, not counted toward performance.
281281 LOGR (" Unrequested block [" << encode_hash (hash) << " ] from ["
282- << authority () << " ]." );
282+ << opposite () << " ]." );
283283 return true ;
284284 }
285285
@@ -302,7 +302,7 @@ bool protocol_block_in_31800::handle_receive_block(const code& ec,
302302 code == system::error::invalid_witness_commitment)
303303 {
304304 LOGR (" Malleated block [" << encode_hash (hash) << " :" << height
305- << " ] from [" << authority () << " ] " << code.message ()
305+ << " ] from [" << opposite () << " ] " << code.message ()
306306 << " txs(" << block->transactions () << " )"
307307 << " segregated(" << block->is_segregated () << " )." );
308308 stop (code);
@@ -316,7 +316,7 @@ bool protocol_block_in_31800::handle_receive_block(const code& ec,
316316 }
317317
318318 LOGR (" Block failed check [" << encode_hash (hash) << " :" << height
319- << " ] from [" << authority () << " ] " << code.message ());
319+ << " ] from [" << opposite () << " ] " << code.message ());
320320 notify (error::success, chase::unchecked, link);
321321 fire (events::block_unconfirmable, height);
322322 stop (code);
@@ -329,7 +329,7 @@ bool protocol_block_in_31800::handle_receive_block(const code& ec,
329329 if (const auto code = query.set_code (*block, link, checked))
330330 {
331331 LOGF (" Failure storing block [" << encode_hash (hash) << " :" << height
332- << " ] from [" << authority () << " ] " << code.message ());
332+ << " ] from [" << opposite () << " ] " << code.message ());
333333
334334 stop (fault (code));
335335 return false ;
@@ -339,7 +339,7 @@ bool protocol_block_in_31800::handle_receive_block(const code& ec,
339339 // ........................................................................
340340
341341 LOGP (" Downloaded block [" << encode_hash (hash) << " :" << height
342- << " ] from [" << authority () << " ]." );
342+ << " ] from [" << opposite () << " ]." );
343343
344344 notify (ec, chase::checked, height);
345345 fire (events::block_archived, height);
@@ -388,18 +388,18 @@ void protocol_block_in_31800::restore(const map_ptr& map) NOEXCEPT
388388void protocol_block_in_31800::handle_put_hashes (const code& ec,
389389 size_t count) NOEXCEPT
390390{
391- LOGV (" Put (" << count << " ) work for [" << authority () << " ]." );
391+ LOGV (" Put (" << count << " ) work for [" << opposite () << " ]." );
392392
393393 if (ec)
394394 {
395- LOGF (" Error putting work for [" << authority () << " ] " << ec.message ());
395+ LOGF (" Error putting work for [" << opposite () << " ] " << ec.message ());
396396 }
397397}
398398
399399void protocol_block_in_31800::handle_get_hashes (const code& ec,
400400 const map_ptr& map, const job::ptr& job) NOEXCEPT
401401{
402- LOGV (" Got (" << map->size () << " ) work for [" << authority () << " ]." );
402+ LOGV (" Got (" << map->size () << " ) work for [" << opposite () << " ]." );
403403
404404 if (stopped ())
405405 {
@@ -409,7 +409,7 @@ void protocol_block_in_31800::handle_get_hashes(const code& ec,
409409
410410 if (ec)
411411 {
412- LOGF (" Error getting work for [" << authority () << " ] " << ec.message ());
412+ LOGF (" Error getting work for [" << opposite () << " ] " << ec.message ());
413413 stop (ec);
414414 return ;
415415 }
0 commit comments