mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
fix lite-client logging (#883)
* fix lite-client logging * fix logging in continue_check_validator_load2
This commit is contained in:
parent
59927ba534
commit
957ecd7231
1 changed files with 2 additions and 2 deletions
|
@ -3529,7 +3529,7 @@ void TestNode::continue_check_validator_load2(std::unique_ptr<TestNode::Validato
|
|||
std::unique_ptr<TestNode::ValidatorLoadInfo> info2, int mode,
|
||||
std::string file_pfx) {
|
||||
LOG(INFO) << "continue_check_validator_load2 for blocks " << info1->blk_id.to_str() << " and "
|
||||
<< info1->blk_id.to_str() << " : requesting block creators data";
|
||||
<< info2->blk_id.to_str() << " : requesting block creators data";
|
||||
td::Status st = info1->unpack_vset();
|
||||
if (st.is_error()) {
|
||||
LOG(ERROR) << "cannot unpack validator set from block " << info1->blk_id.to_str() << " :" << st.move_as_error();
|
||||
|
@ -3627,7 +3627,7 @@ void TestNode::continue_check_validator_load3(std::unique_ptr<TestNode::Validato
|
|||
auto x1 = info2->created[i].first - info1->created[i].first;
|
||||
auto y1 = info2->created[i].second - info1->created[i].second;
|
||||
if (x1 < 0 || y1 < 0 || (x1 | y1) >= (1u << 31)) {
|
||||
LOG(ERROR) << "impossible situation: validator #i created a negative amount of blocks: " << x1
|
||||
LOG(ERROR) << "impossible situation: validator #" << i << " created a negative amount of blocks: " << x1
|
||||
<< " masterchain blocks, " << y1 << " shardchain blocks";
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue