@@ -163,8 +163,11 @@ td::Status ConfigInfo::unpack() {
163
163
}
164
164
gen::McStateExtra::Record extra_info;
165
165
if (!tlb::unpack_cell (state_extra_root_, extra_info)) {
166
- vm::load_cell_slice (state_extra_root_).print_rec (std::cerr);
167
- block::gen::t_McStateExtra.print_ref (std::cerr, state_extra_root_);
166
+ FLOG (WARNING) {
167
+ sb << " state extra information is invalid: " ;
168
+ vm::load_cell_slice (state_extra_root_).print_rec (sb);
169
+ block::gen::t_McStateExtra.print_ref (sb, state_extra_root_);
170
+ };
168
171
return td::Status::Error (" state extra information is invalid" );
169
172
}
170
173
gen::ValidatorInfo::Record validator_info;
@@ -1067,7 +1070,6 @@ Ref<McShardHash> ShardConfig::get_shard_hash(ton::ShardIdFull id, bool exact) co
1067
1070
ton::ShardIdFull true_id;
1068
1071
vm::CellSlice cs;
1069
1072
if (get_shard_hash_raw (cs, id, true_id, exact)) {
1070
- // block::gen::t_ShardDescr.print(std::cerr, vm::CellSlice{cs});
1071
1073
return McShardHash::unpack (cs, true_id);
1072
1074
} else {
1073
1075
return {};
@@ -1637,8 +1639,10 @@ bool ShardConfig::set_shard_info(ton::ShardIdFull shard, Ref<vm::Cell> value) {
1637
1639
if (!gen::t_BinTree_ShardDescr.validate_ref (1024 , value)) {
1638
1640
LOG (ERROR) << " attempting to store an invalid (BinTree ShardDescr) at shard configuration position "
1639
1641
<< shard.to_str ();
1640
- gen::t_BinTree_ShardDescr.print_ref (std::cerr, value);
1641
- vm::load_cell_slice (value).print_rec (std::cerr);
1642
+ FLOG (WARNING) {
1643
+ gen::t_BinTree_ShardDescr.print_ref (sb, value);
1644
+ vm::load_cell_slice (value).print_rec (sb);
1645
+ };
1642
1646
return false ;
1643
1647
}
1644
1648
auto root = shard_hashes_dict_->lookup_ref (td::BitArray<32 >{shard.workchain });
@@ -1956,6 +1960,7 @@ td::Result<SizeLimitsConfig> Config::do_get_size_limits_config(td::Ref<vm::CellS
1956
1960
limits.max_acc_state_cells = rec.max_acc_state_cells ;
1957
1961
limits.max_acc_public_libraries = rec.max_acc_public_libraries ;
1958
1962
limits.defer_out_queue_size_limit = rec.defer_out_queue_size_limit ;
1963
+ limits.max_msg_extra_currencies = rec.max_msg_extra_currencies ;
1959
1964
};
1960
1965
gen::SizeLimitsConfig::Record_size_limits_config rec_v1;
1961
1966
gen::SizeLimitsConfig::Record_size_limits_config_v2 rec_v2;
0 commit comments