1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00
This commit is contained in:
ton 2019-09-14 21:27:52 +04:00
parent 433545916e
commit 8e5bd938aa
3 changed files with 7 additions and 6 deletions

View file

@ -57,7 +57,7 @@ void LiteQuery::run_query(td::BufferSlice data, td::actor::ActorId<ValidatorMana
LiteQuery::LiteQuery(td::BufferSlice data, td::actor::ActorId<ValidatorManager> manager,
td::Promise<td::BufferSlice> promise)
: query_(std::move(data)), manager_(std::move(manager)), promise_(std::move(promise)) {
timeout_ = td::Timestamp::in(default_timeout_seconds);
timeout_ = td::Timestamp::in(default_timeout_msec * 0.001);
}
void LiteQuery::abort_query(td::Status reason) {

View file

@ -57,9 +57,8 @@ class LiteQuery : public td::actor::Actor {
std::unique_ptr<block::BlockProofChain> chain_;
public:
static constexpr double default_timeout_seconds = 4.5;
static constexpr int ls_version = 0x101; // 1.1
static constexpr long long ls_capabilities = 1; // +1 = build block proof chains
enum { default_timeout_msec = 4500 }; // 4.5 seconds
enum { ls_version = 0x101, ls_capabilities = 1 }; // version 1.1; +1 = build block proof chains
LiteQuery(td::BufferSlice data, td::actor::ActorId<ton::validator::ValidatorManager> manager,
td::Promise<td::BufferSlice> promise);
static void run_query(td::BufferSlice data, td::actor::ActorId<ton::validator::ValidatorManager> manager,