Skip to content

Commit a723612

Browse files
authored
Lower CU budget for mainnet (#86)
1 parent 233e63c commit a723612

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/config.sample.pythnet.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ key_store.mapping_key = "AHtgzX45WTKfkPG53L6WYhGEXwQkN1BVknET3sVsLL8J"
5656
# during periods of high network congestion.
5757
exporter.compute_unit_price_micro_lamports = 4000
5858

59+
# Compute unit limit requested per instruction for transactions that update the price.
60+
# This should be an upper bound of the compute units a single upd_price instruction might consume.
61+
# For solana mainnet, this should be set to 20000 instead of the default 40000 since there is no accumulator.
62+
exporter.compute_unit_limit = 20000
63+
5964
# Whether the dynamic compute unit pricing is enabled.
6065
# This is needed for solana to be able to land transactions on the network
6166
# during periods of high network congestion.

0 commit comments

Comments
 (0)