Skip to content

Commit 85d8b01

Browse files
authored
Make DHT node not care about validator section of global config (#1862)
1 parent 27f9642 commit 85d8b01

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

dht-server/dht-server.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,14 +433,6 @@ td::Status DhtServer::load_global_config() {
433433
TRY_RESULT_PREFIX(dht, ton::dht::Dht::create_global_config(std::move(conf.dht_)), "bad [dht] section: ");
434434
dht_config_ = std::move(dht);
435435

436-
if (!conf.validator_) {
437-
return td::Status::Error(ton::ErrorCode::error, "does not contain [validator] section");
438-
}
439-
440-
if (!conf.validator_->zero_state_) {
441-
return td::Status::Error(ton::ErrorCode::error, "[validator] section does not contain [zero_state]");
442-
}
443-
444436
return td::Status::OK();
445437
}
446438

0 commit comments

Comments
 (0)