1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

updated block header

1. Updated block header, proofs now contain more data
   Notice, that old proofs may become invalid in the future
2. Fixed message routing
3. Fixed block creator id in block header
4. Support for full proofs in tonlib
5. Support for partial state download
6. Some other bugfixes
This commit is contained in:
ton 2019-09-18 21:46:32 +04:00
parent bce33f588a
commit 13140ddf29
73 changed files with 2084 additions and 304 deletions

View file

@ -82,7 +82,7 @@ class WriteFile : public td::actor::Actor {
class ReadFile : public td::actor::Actor {
public:
void start_up() override {
auto S = td::read_file(file_name_);
auto S = td::read_file(file_name_, max_length_, offset_);
if (S.is_ok()) {
promise_.set_result(S.move_as_ok());
} else {
@ -92,12 +92,14 @@ class ReadFile : public td::actor::Actor {
}
stop();
}
ReadFile(std::string file_name, td::Promise<td::BufferSlice> promise)
: file_name_(file_name), promise_(std::move(promise)) {
ReadFile(std::string file_name, td::int64 offset, td::int64 max_length, td::Promise<td::BufferSlice> promise)
: file_name_(file_name), offset_(offset), max_length_(max_length), promise_(std::move(promise)) {
}
private:
std::string file_name_;
td::int64 offset_;
td::int64 max_length_;
td::Promise<td::BufferSlice> promise_;
};