mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 19:47:59 +00:00
network: don't announce genesis block (#3081)
This commit is contained in:
committed by
Bastian Köcher
parent
ab761f7a09
commit
8f81bd90e7
@@ -1036,6 +1036,12 @@ impl<B: BlockT, S: NetworkSpecialization<B>, H: ExHashT> Protocol<B, S, H> {
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
// don't announce genesis block since it will be ignored
|
||||
if header.number().is_zero() {
|
||||
return;
|
||||
}
|
||||
|
||||
let hash = header.hash();
|
||||
|
||||
let message = GenericMessage::BlockAnnounce(message::BlockAnnounce { header: header.clone() });
|
||||
|
||||
Reference in New Issue
Block a user