mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Accelerator: partial fullnodes (#1393)
* Accelerator: partial fullnodes 1) Node can monitor a subset of shards 2) New archive slice format (sharded) 3) Validators are still required to have all shards 4) Support partial liteservers in lite-client, blockchain explorer, tonlib 5) Proxy liteserver * Fix compilation error
This commit is contained in:
parent
62444100f5
commit
954a96a077
83 changed files with 3213 additions and 1113 deletions
|
@ -42,8 +42,6 @@ class ShardClient : public td::actor::Actor {
|
|||
|
||||
td::Promise<td::Unit> promise_;
|
||||
|
||||
std::set<ShardIdFull> created_overlays_;
|
||||
|
||||
public:
|
||||
ShardClient(td::Ref<ValidatorManagerOptions> opts, BlockHandle masterchain_block_handle,
|
||||
td::Ref<MasterchainState> masterchain_state, td::actor::ActorId<ValidatorManager> manager,
|
||||
|
@ -64,8 +62,6 @@ class ShardClient : public td::actor::Actor {
|
|||
return 2;
|
||||
}
|
||||
|
||||
void build_shard_overlays();
|
||||
|
||||
void start_up() override;
|
||||
void start_up_init_mode();
|
||||
void download_shard_states(BlockIdExt masterchain_block_id, std::vector<BlockIdExt> shards, size_t idx);
|
||||
|
@ -90,6 +86,8 @@ class ShardClient : public td::actor::Actor {
|
|||
|
||||
void force_update_shard_client(BlockHandle handle, td::Promise<td::Unit> promise);
|
||||
void force_update_shard_client_ex(BlockHandle handle, td::Ref<MasterchainState> state, td::Promise<td::Unit> promise);
|
||||
|
||||
void update_options(td::Ref<ValidatorManagerOptions> opts);
|
||||
};
|
||||
|
||||
} // namespace validator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue