From c9b1d08218d9552b67b2839a2db752a624c4f793 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 5 Aug 2020 21:30:23 -0700 Subject: [PATCH] Enable cross program support in mainnet-beta epoch 63 --- genesis-programs/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/genesis-programs/src/lib.rs b/genesis-programs/src/lib.rs index c24f305f79451f..fa97a771a1f005 100644 --- a/genesis-programs/src/lib.rs +++ b/genesis-programs/src/lib.rs @@ -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); + } }) }