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

Fix validator-engine-console not stopping after error

This commit is contained in:
SpyCheese 2022-07-14 14:02:50 +03:00 committed by EmelyanenkoK
parent 417c3bb640
commit 9465fd866a
3 changed files with 7 additions and 3 deletions

View file

@ -168,7 +168,10 @@ bool ValidatorEngineConsole::envelope_send_query(td::BufferSlice query, td::Prom
return true;
}
void ValidatorEngineConsole::got_result() {
void ValidatorEngineConsole::got_result(bool success) {
if (!success && ex_mode_) {
std::_Exit(2);
}
running_queries_--;
if (!running_queries_ && ex_queries_.size() > 0) {
auto data = std::move(ex_queries_[0]);