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

More precise calculation of expected shard blocks in checkload (#1279)

* More precise calculation of expected shard blocks in checkload

* Fix monte-carlo checkload
This commit is contained in:
SpyCheese 2024-10-15 17:59:12 +03:00 committed by GitHub
parent 5920f800de
commit 603d1d14b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 279 additions and 64 deletions

View file

@ -426,7 +426,7 @@ bool store_validator_list_hash(vm::CellBuilder& cb) {
LOG_CHECK(vset) << "unpacked validator set is empty";
auto ccvc = block::Config::unpack_catchain_validators_config(config_dict.lookup_ref(td::BitArray<32>{28}));
ton::ShardIdFull shard{ton::masterchainId};
auto nodes = block::Config::do_compute_validator_set(ccvc, shard, *vset, now, 0);
auto nodes = block::Config::do_compute_validator_set(ccvc, shard, *vset, 0);
LOG_CHECK(!nodes.empty()) << "validator node list in unpacked validator set is empty";
auto vset_hash = block::compute_validator_set_hash(0, shard, std::move(nodes));
LOG(DEBUG) << "initial validator set hash is " << vset_hash;