mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Add special overlay for validators for block broadcasting (#842)
* Private overlay for broadcasting blocks --------- Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
6c615a105a
commit
a52045bd91
10 changed files with 338 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
|||
//#include "ton-node-slave.h"
|
||||
#include "interfaces/proof.h"
|
||||
#include "interfaces/shard.h"
|
||||
#include "full-node-private-overlay.hpp"
|
||||
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
@ -111,9 +112,15 @@ class FullNodeImpl : public FullNode {
|
|||
|
||||
PublicKeyHash sign_cert_by_;
|
||||
std::vector<PublicKeyHash> all_validators_;
|
||||
std::map<PublicKeyHash, adnl::AdnlNodeIdShort> current_validators_;
|
||||
|
||||
std::set<PublicKeyHash> local_keys_;
|
||||
FullNodeConfig config_;
|
||||
|
||||
std::map<PublicKeyHash, td::actor::ActorOwn<FullNodePrivateOverlay>> private_block_overlays_;
|
||||
|
||||
void update_private_block_overlays();
|
||||
void create_private_block_overlay(PublicKeyHash key);
|
||||
};
|
||||
|
||||
} // namespace fullnode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue