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

deleted unused code, support for logrotate, update in block validation code

This commit is contained in:
ton 2019-09-10 12:30:35 +04:00
parent 2b734e170c
commit 47814dca3d
44 changed files with 175 additions and 4196 deletions

View file

@ -131,14 +131,17 @@ td::Result<block::StdAddress> parse_account_addr(std::map<std::string, std::stri
return td::Status::Error(ton::ErrorCode::error, "no account id");
}
std::string acc_string = it->second;
block::StdAddress a{acc_string};
if (a.is_valid()) {
block::StdAddress a;
if (a.parse_addr(td::Slice(acc_string))) {
return a;
}
ton::WorkchainId workchain_id;
it = opts.find("accountworkchain");
if (it == opts.end()) {
return td::Status::Error(ton::ErrorCode::error, "no account workchain id");
it = opts.find("workchain");
if (it == opts.end()) {
return td::Status::Error(ton::ErrorCode::error, "no account workchain id");
}
}
try {
workchain_id = std::stoi(it->second);