mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Add overlay certificate checks
This commit is contained in:
parent
9e9351903a
commit
678a8a6a13
17 changed files with 232 additions and 62 deletions
|
@ -144,9 +144,12 @@ class OverlayImpl : public Overlay {
|
|||
void print(td::StringBuilder &sb) override;
|
||||
|
||||
td::Status check_date(td::uint32 date);
|
||||
td::Status check_source_eligible(PublicKey source, const Certificate *cert, td::uint32 size);
|
||||
BroadcastCheckResult check_source_eligible(PublicKey source, const Certificate *cert, td::uint32 size, bool is_fec);
|
||||
td::Status check_delivered(BroadcastHash hash);
|
||||
|
||||
void broadcast_checked(Overlay::BroadcastHash hash, td::Result<td::Unit> R);
|
||||
void check_broadcast(PublicKeyHash src, td::BufferSlice data, td::Promise<td::Unit> promise);
|
||||
|
||||
BroadcastFec *get_fec_broadcast(BroadcastHash hash);
|
||||
void register_fec_broadcast(std::unique_ptr<BroadcastFec> bcast);
|
||||
void register_simple_broadcast(std::unique_ptr<BroadcastSimple> bcast);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue