mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 03:58:04 +00:00
core/network: Log when ignoring genesis block announcement (#3078)
Instead of logging the fact that a generic invalid block announcement is ignored, log that the given block is the genesis block.
This commit is contained in:
@@ -797,7 +797,7 @@ impl<B: BlockT> ChainSync<B> {
|
||||
let number = *header.number();
|
||||
debug!(target: "sync", "Received block announcement with number {:?}", number);
|
||||
if number.is_zero() {
|
||||
warn!(target: "sync", "Ignored invalid block announcement from {}: {}", who, hash);
|
||||
warn!(target: "sync", "Ignored genesis block (#0) announcement from {}: {}", who, hash);
|
||||
return false;
|
||||
}
|
||||
let parent_status = block_status(&*protocol.client(), &self.queue_blocks, header.parent_hash().clone()).ok()
|
||||
|
||||
Reference in New Issue
Block a user