From 56bee7dd7559fd57e555b0669f6d64841a38bc11 Mon Sep 17 00:00:00 2001 From: Tom Pointon Date: Thu, 16 Jan 2025 15:33:28 +0000 Subject: [PATCH] pack: don't charge ALT as a builtin --- src/ballet/pack/fd_pack_cost.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ballet/pack/fd_pack_cost.h b/src/ballet/pack/fd_pack_cost.h index 235b03ff22..99b68a0ca8 100644 --- a/src/ballet/pack/fd_pack_cost.h +++ b/src/ballet/pack/fd_pack_cost.h @@ -57,14 +57,13 @@ typedef struct fd_pack_builtin_prog_cost fd_pack_builtin_prog_cost_t; #define MAP_PERFECT_2 ( VOTE_PROG_ID ), .cost_per_instr=VOTE_PROG_COST #define MAP_PERFECT_3 ( SYS_PROG_ID ), .cost_per_instr= 3000UL #define MAP_PERFECT_4 ( COMPUTE_BUDGET_PROG_ID ), .cost_per_instr= 3000UL -#define MAP_PERFECT_5 ( ADDR_LUT_PROG_ID ), .cost_per_instr= 3000UL -#define MAP_PERFECT_6 ( BPF_UPGRADEABLE_PROG_ID ), .cost_per_instr= 3000UL -#define MAP_PERFECT_7 ( BPF_LOADER_1_PROG_ID ), .cost_per_instr= 3000UL -#define MAP_PERFECT_8 ( BPF_LOADER_2_PROG_ID ), .cost_per_instr= 3000UL -#define MAP_PERFECT_9 ( LOADER_V4_PROG_ID ), .cost_per_instr= 3000UL -#define MAP_PERFECT_10 ( KECCAK_SECP_PROG_ID ), .cost_per_instr= 3000UL -#define MAP_PERFECT_11 ( ED25519_SV_PROG_ID ), .cost_per_instr= 3000UL -#define MAP_PERFECT_12 ( SECP256R1_PROG_ID ), .cost_per_instr= 3000UL +#define MAP_PERFECT_5 ( BPF_UPGRADEABLE_PROG_ID ), .cost_per_instr= 3000UL +#define MAP_PERFECT_6 ( BPF_LOADER_1_PROG_ID ), .cost_per_instr= 3000UL +#define MAP_PERFECT_7 ( BPF_LOADER_2_PROG_ID ), .cost_per_instr= 3000UL +#define MAP_PERFECT_8 ( LOADER_V4_PROG_ID ), .cost_per_instr= 3000UL +#define MAP_PERFECT_9 ( KECCAK_SECP_PROG_ID ), .cost_per_instr= 3000UL +#define MAP_PERFECT_10 ( ED25519_SV_PROG_ID ), .cost_per_instr= 3000UL +#define MAP_PERFECT_11 ( SECP256R1_PROG_ID ), .cost_per_instr= 3000UL #include "../../util/tmpl/fd_map_perfect.c"