From 06d468e813c746510125ab09a03532071db847cc Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Thu, 30 Nov 2023 20:19:13 +0100 Subject: [PATCH] chore: add slot gap to pythnet options (#98) --- config/config.sample.pythnet.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/config.sample.pythnet.toml b/config/config.sample.pythnet.toml index a9a338b..be54922 100644 --- a/config/config.sample.pythnet.toml +++ b/config/config.sample.pythnet.toml @@ -58,6 +58,11 @@ exporter.compute_unit_limit = 20000 # during periods of high network congestion. exporter.dynamic_compute_unit_pricing_enabled = true +# Maximum slot gap between the current slot and the oldest slot amongst all the accounts in +# the batch. This is used to calculate the dynamic price per compute unit. When the slot gap +# reaches this number we will use the maximum total_compute_fee for the transaction. +exporter.maximum_slot_gap_for_dynamic_compute_unit_price = 40 + # The interval with which to poll account information. We are adding it as an extra # layer of protection to ensure we get the latest account information if there are # any issues with the ws subscription.