mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Exp/compress candidates (#942)
* Compress block candidates in validator-session * Compress blocks in full-node (disabled for now) --------- Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
9452c367e4
commit
0bcebe8a0e
21 changed files with 548 additions and 112 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "validator/validator.h"
|
||||
#include "ton/ton-tl.hpp"
|
||||
#include "full-node-serializer.hpp"
|
||||
|
||||
namespace ton {
|
||||
|
||||
|
@ -38,8 +39,8 @@ class BlockFullSender : public td::actor::Actor {
|
|||
stop();
|
||||
}
|
||||
void finish_query() {
|
||||
promise_.set_value(create_serialize_tl_object<ton_api::tonNode_dataFull>(
|
||||
create_tl_block_id(block_id_), std::move(proof_), std::move(data_), is_proof_link_));
|
||||
promise_.set_result(
|
||||
serialize_block_full(block_id_, proof_, data_, is_proof_link_, false)); // compression_enabled = false
|
||||
stop();
|
||||
}
|
||||
void start_up() override {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue