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

Add versioned validatorSession.config

This commit is contained in:
EmelyanenkoK 2021-01-20 16:11:40 +03:00 committed by main
parent fc928ce451
commit d13691a933
5 changed files with 23 additions and 9 deletions

View file

@ -1692,6 +1692,9 @@ void ValidatorManagerImpl::update_shards() {
auto exp_vec = last_masterchain_state_->get_shards();
auto config = last_masterchain_state_->get_consensus_config();
validatorsession::ValidatorSessionOptions opts{config};
if(last_masterchain_seqno_ > 9000000) { //TODO move to get_consensus_config()
opts.proto_version = 1;
}
auto opts_hash = opts.get_hash();
std::map<ShardIdFull, std::vector<BlockIdExt>> new_shards;