mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
new db
new database fift/func bugfixes
This commit is contained in:
parent
950e292264
commit
e30d98eb30
110 changed files with 6102 additions and 2075 deletions
|
@ -22,7 +22,7 @@
|
|||
#include "td/actor/actor.h"
|
||||
#include "validator/interfaces/block-handle.h"
|
||||
#include "ton/ton-io.hpp"
|
||||
#include "archive-db.hpp"
|
||||
#include "archive-manager.hpp"
|
||||
|
||||
namespace ton {
|
||||
|
||||
|
@ -33,14 +33,12 @@ class FileDb;
|
|||
|
||||
class BlockArchiver : public td::actor::Actor {
|
||||
public:
|
||||
BlockArchiver(BlockIdExt block_id, td::actor::ActorId<RootDb> root_db, td::actor::ActorId<FileDb> file_db,
|
||||
td::actor::ActorId<FileDb> archive_db, td::actor::ActorId<ArchiveManager> archive,
|
||||
td::Promise<td::Unit> promise);
|
||||
BlockArchiver(BlockHandle handle, td::actor::ActorId<ArchiveManager> archive_db, td::Promise<td::Unit> promise);
|
||||
|
||||
void abort_query(td::Status error);
|
||||
|
||||
void start_up() override;
|
||||
void got_block_handle(BlockHandle handle);
|
||||
void moved_handle();
|
||||
void got_proof(td::BufferSlice data);
|
||||
void written_proof();
|
||||
void got_proof_link(td::BufferSlice data);
|
||||
|
@ -50,14 +48,9 @@ class BlockArchiver : public td::actor::Actor {
|
|||
void finish_query();
|
||||
|
||||
private:
|
||||
BlockIdExt block_id_;
|
||||
td::actor::ActorId<RootDb> root_db_;
|
||||
td::actor::ActorId<FileDb> file_db_;
|
||||
td::actor::ActorId<FileDb> archive_db_;
|
||||
BlockHandle handle_;
|
||||
td::actor::ActorId<ArchiveManager> archive_;
|
||||
td::Promise<td::Unit> promise_;
|
||||
|
||||
BlockHandle handle_;
|
||||
};
|
||||
|
||||
} // namespace validator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue