mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Download persistent states when syncing new shards
This commit is contained in:
parent
be2169e523
commit
ea7a5776fe
18 changed files with 273 additions and 17 deletions
|
@ -44,6 +44,7 @@ class AsyncStateSerializer : public td::actor::Actor {
|
|||
|
||||
std::shared_ptr<vm::CellDbReader> cell_db_reader_ = nullptr;
|
||||
BlockHandle masterchain_handle_;
|
||||
bool stored_persistent_state_description_ = false;
|
||||
bool have_masterchain_state_ = false;
|
||||
|
||||
std::vector<BlockIdExt> shards_;
|
||||
|
@ -71,6 +72,7 @@ class AsyncStateSerializer : public td::actor::Actor {
|
|||
|
||||
void next_iteration();
|
||||
void got_top_masterchain_handle(BlockIdExt block_id);
|
||||
void store_persistent_state_description(td::Ref<MasterchainState> state);
|
||||
void got_cell_db_reader(std::shared_ptr<vm::CellDbReader> cell_db_reader);
|
||||
void got_masterchain_handle(BlockHandle handle_);
|
||||
void got_masterchain_state(td::Ref<MasterchainState> state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue