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
|
|
@ -353,6 +353,14 @@ struct BlockBroadcast {
|
|||
td::uint32 validator_set_hash;
|
||||
td::BufferSlice data;
|
||||
td::BufferSlice proof;
|
||||
|
||||
BlockBroadcast clone() const {
|
||||
std::vector<BlockSignature> new_signatures;
|
||||
for (const BlockSignature& s : signatures) {
|
||||
new_signatures.emplace_back(s.node, s.signature.clone());
|
||||
}
|
||||
return {block_id, std::move(new_signatures), catchain_seqno, validator_set_hash, data.clone(), proof.clone()};
|
||||
}
|
||||
};
|
||||
|
||||
struct Ed25519_PrivateKey {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue