Skip to content
Commit 7a7d641b 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 5098710c
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