diff --git a/validator/impl/liteserver.cpp b/validator/impl/liteserver.cpp index 7f6811fb..ac2932bc 100644 --- a/validator/impl/liteserver.cpp +++ b/validator/impl/liteserver.cpp @@ -509,7 +509,7 @@ void LiteQuery::get_block_handle_checked(BlockIdExt blkid, td::Promiseis_applied()) { promise.set_result(std::move(handle)); } else { - promise.set_error(td::Status::Error("block is not applied")); + promise.set_error(td::Status::Error(ErrorCode::notready, "block is not applied")); } } }); @@ -1471,7 +1471,7 @@ void LiteQuery::continue_getTransactions(unsigned remaining, bool exact) { } else { auto handle = res.move_as_ok(); if (!handle->is_applied()) { - td::actor::send_closure(Self, &LiteQuery::abort_getTransactions, td::Status::Error("block is not applied"), + td::actor::send_closure(Self, &LiteQuery::abort_getTransactions, td::Status::Error(ErrorCode::notready, "block is not applied"), ton::BlockIdExt{}); return; } @@ -1801,7 +1801,7 @@ void LiteQuery::perform_lookupBlock(BlockId blkid, int mode, LogicalTime lt, Uni } else { auto handle = res.move_as_ok(); if (!handle->is_applied()) { - td::actor::send_closure(Self, &LiteQuery::abort_query, td::Status::Error("block is not applied")); + td::actor::send_closure(Self, &LiteQuery::abort_query, td::Status::Error(ErrorCode::notready, "block is not applied")); return; } LOG(DEBUG) << "requesting data for block " << handle->id().to_str();