Skip to content

Commit

Permalink
chore: update sample config
Browse files Browse the repository at this point in the history
ali-bahjati authored Dec 13, 2023
1 parent 533520a commit e7a0a4b
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions config/config.sample.pythnet.toml
Original file line number Diff line number Diff line change
@@ -68,6 +68,11 @@ exporter.maximum_slot_gap_for_dynamic_compute_unit_price = 40
# any issues with the ws subscription.
oracle.poll_interval_duration = "5s"

# Maximum total compute unit fee paid for a single transaction. Defaults to 0.003 SOL. This
# is a safety measure while using dynamic compute price to prevent the exporter from paying
# too much for a single transaction.
exporter.maximum_total_compute_fee_micro_lamports = 3000000000000

# Configuration for the JRPC API
[pythd_adapter]

6 changes: 3 additions & 3 deletions config/config.toml
Original file line number Diff line number Diff line change
@@ -83,10 +83,10 @@ key_store.mapping_key = "RelevantOracleMappingAddress"
# calculated based on the network previous prioritization fees.
# exporter.dynamic_compute_unit_pricing_enabled = false

# Maximum total compute unit fee paid for a single transaction. Defaults to 0.001 SOL. This
# Maximum total compute unit fee paid for a single transaction. Defaults to 0.0003 SOL. This
# is a safety measure while using dynamic compute price to prevent the exporter from paying
# too much for a single transaction. The default is 10**12 micro lamports (0.001 SOL).
# exporter.maximum_total_compute_fee_micro_lamports = 1000000000000
# too much for a single transaction.
# exporter.maximum_total_compute_fee_micro_lamports = 300000000000

# 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

0 comments on commit e7a0a4b

Please sign in to comment.