Register listeners in statement distribution (#1759)

* Register listeners in statement distribution

* Review fixes
This commit is contained in:
Fedor Sakharov
2020-09-28 16:55:59 +03:00
committed by GitHub
parent 32cc9e7a44
commit 9756b2d676
3 changed files with 35 additions and 3 deletions
@@ -362,6 +362,8 @@ enum StatementDistributionMessage {
/// The statement distribution subsystem assumes that the statement should be correctly
/// signed.
Share(Hash, SignedFullStatement),
/// Register a listener to be notified on any new statements.
RegisterStatementListener(ResponseChannel<SignedFullStatement>),
}
```