Skip to content
Snippets Groups Projects
Commit 8f81bd90 authored by André Silva's avatar André Silva Committed by Bastian Köcher
Browse files

network: don't announce genesis block (#3081)

parent ab761f7a
No related merge requests found
......@@ -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() });
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment