From 95e03e682ad3928b6b4a4a79423c95d4e96b1352 Mon Sep 17 00:00:00 2001 From: De Facto Date: Sat, 6 Feb 2021 10:51:14 +0800 Subject: [PATCH] bump max oracles to 13 --- program/src/instruction.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/program/src/instruction.rs b/program/src/instruction.rs index b00dd0c..e370417 100644 --- a/program/src/instruction.rs +++ b/program/src/instruction.rs @@ -6,7 +6,11 @@ use crate::state::AggregatorConfig; use borsh::{BorshDeserialize, BorshSchema, BorshSerialize}; /// Maximum number of oracles -pub const MAX_ORACLES: usize = 12; +/// +/// change to 14, and it fails with: +/// Stack offset of -4120 exceeded max offset of -4096 by 24 bytes, please minimize large stack variables +pub const MAX_ORACLES: usize = 13; + /// The amount paid of TOKEN paid to each oracle per submission, in lamports (10e-10 SOL) pub const PAYMENT_AMOUNT: u64 = 10;