Skip to content
Commit af0d71d3 authored by Toralf Wittner's avatar Toralf Wittner Committed by Bastian Köcher
Browse files

Add block announce validator. (#3346)



* Add `BlockAnnounceValidator` trait.

* Add associated data to block announcement.

* Make tests compile.

* Move validator into `sync.rs`.

* Smaller changes.

* Update core/network/src/protocol.rs

Co-Authored-By: default avatarKian Paimani <[email protected]>

* Update core/network/src/protocol.rs

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* Update core/network/src/test/sync.rs

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* Formatting.

* Remove assoc. data from `BlockImportNotification`.

* Use `Option<Vec<u8>>` for associated data.

* Update core/network/src/protocol/sync.rs

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* Fix type error.
parent 4888c253
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