mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated tonlib, fixed bugs
updated tonlib fixed bugs in func validator: partial support for hardforks liteserver: support for waitMasterchainBlock prefix transactions: support for gas flat rate
This commit is contained in:
parent
841d5ebac2
commit
7ea00ebfcf
89 changed files with 1922 additions and 608 deletions
|
|
@ -18,6 +18,7 @@
|
|||
Copyright 2017-2019 Telegram Systems LLP
|
||||
*/
|
||||
#include "ExtClientOutbound.h"
|
||||
#include "TonlibError.h"
|
||||
#include <map>
|
||||
namespace tonlib {
|
||||
|
||||
|
|
@ -40,7 +41,7 @@ class ExtClientOutboundImp : public ExtClientOutbound {
|
|||
void on_query_result(td::int64 id, td::Result<td::BufferSlice> r_data, td::Promise<td::Unit> promise) override {
|
||||
auto it = queries_.find(id);
|
||||
if (it == queries_.end()) {
|
||||
promise.set_error(td::Status::Error(400, "Unknown query id"));
|
||||
promise.set_error(TonlibError::Internal("Unknown query id"));
|
||||
}
|
||||
it->second.set_result(std::move(r_data));
|
||||
queries_.erase(it);
|
||||
|
|
@ -54,7 +55,7 @@ class ExtClientOutboundImp : public ExtClientOutbound {
|
|||
|
||||
void tear_down() override {
|
||||
for (auto &it : queries_) {
|
||||
it.second.set_error(td::Status::Error(400, "Query cancelled"));
|
||||
it.second.set_error(TonlibError::Cancelled());
|
||||
}
|
||||
queries_.clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue