Enable cross program support in mainnet-beta epoch 63

This commit is contained in:
Michael Vines 2020-08-05 21:30:23 -07:00 committed by mergify[bot]
parent 5c4b8153c6
commit c9b1d08218
1 changed files with 5 additions and 1 deletions

View File

@ -105,7 +105,11 @@ pub fn get_entered_epoch_callback(operating_mode: OperatingMode) -> EnteredEpoch
bank.add_native_program(name, program_id);
}
}
bank.set_cross_program_support(OperatingMode::Stable != operating_mode);
if OperatingMode::Stable == operating_mode {
bank.set_cross_program_support(bank.epoch() > 62);
} else {
bank.set_cross_program_support(true);
}
})
}