mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated tonlib, new fullnode queries
This commit is contained in:
parent
87ccb27b70
commit
a1e352d894
40 changed files with 1188 additions and 175 deletions
16
tonlib/tonlib/LastBlockStorage.h
Normal file
16
tonlib/tonlib/LastBlockStorage.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#pragma once
|
||||
|
||||
#include "tonlib/LastBlock.h"
|
||||
|
||||
namespace tonlib {
|
||||
class LastBlockStorage {
|
||||
public:
|
||||
td::Status set_directory(std::string directory);
|
||||
td::Result<LastBlockState> get_state(td::Slice name);
|
||||
void save_state(td::Slice name, LastBlockState state);
|
||||
|
||||
private:
|
||||
std::string directory_;
|
||||
std::string get_file_name(td::Slice name);
|
||||
};
|
||||
} // namespace tonlib
|
Loading…
Add table
Add a link
Reference in a new issue