Skip to content

Commit

Permalink
Update hardforks when first config record differs
Browse files Browse the repository at this point in the history
Signed-off-by: ice-charon <[email protected]>
  • Loading branch information
ice-charon committed Jul 18, 2024
1 parent 2366e24 commit 4cf11ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion validator/manager-init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,11 @@ void ValidatorManagerMasterchainStarter::got_hardforks(std::vector<BlockIdExt> v
if (h.size() == vec.size()) {
if (h.size() > 0) {
if (*h.rbegin() != *vec.rbegin()) {
LOG(FATAL) << "cannot start: hardforks list changed";
auto P = td::PromiseCreator::lambda([SelfId = actor_id(this), h](td::Result<td::Unit> R) {
R.ensure();
td::actor::send_closure(SelfId, &ValidatorManagerMasterchainStarter::got_hardforks, h);
});
td::actor::send_closure(db_, &Db::update_hardforks, h, std::move(P));
return;
}
}
Expand Down

0 comments on commit 4cf11ff

Please sign in to comment.