Skip to content

Commit

Permalink
Apply hardfork block on out of sync
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 31, 2024
1 parent 8446721 commit 63fca33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validator/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,8 @@ void ValidatorManagerImpl::read_gc_list(std::vector<ValidatorSessionId> list) {

if (last_masterchain_block_handle_->inited_next_left()) {
auto b = last_masterchain_block_handle_->one_next(true);
if (opts_->is_hardfork(b) && !out_of_sync()) {
// if we are on hardfork block it has to be applied even node is out of sync
if (opts_->is_hardfork(b)) {
auto P = td::PromiseCreator::lambda([SelfId = actor_id(this), b](td::Result<td::BufferSlice> R) {
if (R.is_error()) {
LOG(INFO) << "NO HARDFORK BLOCK IN STATIC FILES";
Expand Down

0 comments on commit 63fca33

Please sign in to comment.