From 2c1d548898c164b141d10945f815c6b1721bcc57 Mon Sep 17 00:00:00 2001 From: Kunal Bhargava Date: Fri, 16 May 2025 22:24:23 +0000 Subject: [PATCH] flamenco: activate precompiles at activation --- src/flamenco/runtime/fd_runtime.c | 8 +++++ .../runtime/program/fd_builtin_programs.c | 29 +++++++++++++++++++ .../runtime/program/fd_builtin_programs.h | 13 +++++++++ 3 files changed, 50 insertions(+) diff --git a/src/flamenco/runtime/fd_runtime.c b/src/flamenco/runtime/fd_runtime.c index 925f6b2a2f..901fecaf12 100644 --- a/src/flamenco/runtime/fd_runtime.c +++ b/src/flamenco/runtime/fd_runtime.c @@ -2660,6 +2660,14 @@ fd_apply_builtin_program_feature_transitions( fd_exec_slot_ctx_t * slot_ctx, } } + /* https://github.com/anza-xyz/agave/blob/c1080de464cfb578c301e975f498964b5d5313db/runtime/src/bank.rs#L6795-L6805 */ + fd_precompile_program_t const * precompiles = fd_precompiles(); + for( ulong i=0UL; i