File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -84,14 +84,14 @@ td::Status ShardBlockVerifierConfig::unpack(const ton_api::engine_validator_shar
8484 return td::Status::Error (PSTRING () << " duplicate node " << node_id);
8585 }
8686 shard.trusted_nodes .push_back (node_id);
87- if (shard_obj->required_confirms_ < 0 || shard_obj->required_confirms_ > (int )shard.trusted_nodes .size ()) {
88- return td::Status::Error (PSTRING ()
89- << " invalid required_confirms " << shard_obj->required_confirms_ << " for shard "
90- << shard.shard_id .to_str () << " (nodes: " << shard.trusted_nodes .size () << " )" );
91- }
92- shard.required_confirms = shard_obj->required_confirms_ ;
93- shards.push_back (std::move (shard));
9487 }
88+ if (shard_obj->required_confirms_ < 0 || shard_obj->required_confirms_ > (int )shard.trusted_nodes .size ()) {
89+ return td::Status::Error (PSTRING ()
90+ << " invalid required_confirms " << shard_obj->required_confirms_ << " for shard "
91+ << shard.shard_id .to_str () << " (nodes: " << shard.trusted_nodes .size () << " )" );
92+ }
93+ shard.required_confirms = shard_obj->required_confirms_ ;
94+ shards.push_back (std::move (shard));
9595 }
9696 return td::Status::OK ();
9797}
You can’t perform that action at this time.
0 commit comments