@@ -290,23 +290,17 @@ where
290
290
. await ?;
291
291
292
292
if headers. is_empty ( ) {
293
- log:: warn!(
294
- concat!(
295
- "[peer id = {}] Got new tip event with block id {}, " ,
296
- "but there is nothing to send"
297
- ) ,
293
+ log:: debug!(
294
+ "[peer id = {}] Got new tip event with block id {}, but there is nothing to send" ,
298
295
self . id( ) ,
299
296
new_tip_id,
300
297
) ;
301
298
} else if best_block_id != new_tip_id {
302
299
// If we got here, another "new tip" event should be generated soon,
303
300
// so we may ignore this one (and it makes sense to ignore it to avoid sending
304
301
// the same header list multiple times).
305
- log:: warn!(
306
- concat!(
307
- "[peer id = {}] Got new tip event with block id {}, " ,
308
- "but the tip has changed since then to {}"
309
- ) ,
302
+ log:: info!(
303
+ "[peer id = {}] Got new tip event with block id {}, but the tip has changed since then to {}" ,
310
304
self . id( ) ,
311
305
new_tip_id,
312
306
best_block_id
@@ -357,9 +351,6 @@ where
357
351
async fn request_headers ( & mut self ) -> Result < ( ) > {
358
352
let locator = self . chainstate_handle . call ( |this| Ok ( this. get_locator ( ) ?) ) . await ?;
359
353
if locator. len ( ) > * self . p2p_config . protocol_config . msg_max_locator_count {
360
- // Note: msg_max_locator_count is not supposed to be configurable outside of tests,
361
- // so we should never get here in production code. Moreover, currently it's not
362
- // modified even in tests. TODO: make it a constant.
363
354
log:: warn!(
364
355
"[peer id = {}] Sending locator of the length {}, which exceeds the maximum length {:?}" ,
365
356
self . id( ) ,
0 commit comments