Skip to content

Commit bba66b3

Browse files
authored
feat: competitive priority fee pricing (#18047)
In order to avoid getting priced-out during priority fee spikes, we now check historical block fees as well as pending block fees, in order to make sure we are competitive. Also updating our deployment values to stop using fixed priority fee and use aggressive bump percentages instead in order to test this Fixes [A-138](https://linear.app/aztec-labs/issue/A-138/more-aggressive-priority-fee-and-retries-on-block-submissions)
2 parents f60d2c5 + 076ce5f commit bba66b3

19 files changed

+399
-52
lines changed

spartan/aztec-network/templates/boot-node.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,18 @@ spec:
100100
value: "{{ .Values.aztec.proofSubmissionWindow }}"
101101
- name: L1_GAS_PRICE_MAX
102102
value: "{{ .Values.ethereum.l1GasPriceMax }}"
103+
{{- if .Values.ethereum.l1FixedPriorityFeePerGas }}
103104
- name: L1_FIXED_PRIORITY_FEE_PER_GAS
104105
value: "{{ .Values.ethereum.l1FixedPriorityFeePerGas }}"
106+
{{- end }}
107+
{{- if .Values.ethereum.l1PriorityFeeBumpPercentage }}
108+
- name: L1_PRIORITY_FEE_BUMP_PERCENTAGE
109+
value: {{ .Values.ethereum.l1PriorityFeeBumpPercentage | quote }}
110+
{{- end }}
111+
{{- if .Values.ethereum.l1PriorityFeeRetryBumpPercentage }}
112+
- name: L1_PRIORITY_FEE_RETRY_BUMP_PERCENTAGE
113+
value: {{ .Values.ethereum.l1PriorityFeeRetryBumpPercentage | quote }}
114+
{{- end }}
105115
- name: AZTEC_MANA_TARGET
106116
value: "{{ .Values.aztec.manaTarget }}"
107117
- name: REAL_VERIFIER

spartan/aztec-network/templates/prover-node.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,18 @@ spec:
159159
value: "{{ .Values.proverNode.failedEpochStore }}"
160160
- name: L1_CHAIN_ID
161161
value: "{{ .Values.ethereum.chainId }}"
162+
{{- if .Values.proverNode.l1FixedPriorityFeePerGas }}
162163
- name: L1_FIXED_PRIORITY_FEE_PER_GAS
163164
value: {{ .Values.proverNode.l1FixedPriorityFeePerGas | quote }}
165+
{{- end }}
166+
{{- if .Values.proverNode.l1PriorityFeeBumpPercentage }}
167+
- name: L1_PRIORITY_FEE_BUMP_PERCENTAGE
168+
value: {{ .Values.proverNode.l1PriorityFeeBumpPercentage | quote }}
169+
{{- end }}
170+
{{- if .Values.proverNode.l1PriorityFeeRetryBumpPercentage }}
171+
- name: L1_PRIORITY_FEE_RETRY_BUMP_PERCENTAGE
172+
value: {{ .Values.proverNode.l1PriorityFeeRetryBumpPercentage | quote }}
173+
{{- end }}
164174
- name: L1_GAS_LIMIT_BUFFER_PERCENTAGE
165175
value: {{ .Values.proverNode.l1GasLimitBufferPercentage | quote }}
166176
- name: L1_GAS_PRICE_MAX

spartan/aztec-network/templates/validator.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,18 @@ spec:
164164
value: {{ .Values.validator.viemPollingInterval | quote }}
165165
- name: SEQ_VIEM_POLLING_INTERVAL_MS
166166
value: {{ .Values.validator.viemPollingInterval | quote }}
167+
{{- if .Values.validator.l1FixedPriorityFeePerGas }}
167168
- name: L1_FIXED_PRIORITY_FEE_PER_GAS
168169
value: {{ .Values.validator.l1FixedPriorityFeePerGas | quote }}
170+
{{- end }}
171+
{{- if .Values.validator.l1PriorityFeeBumpPercentage }}
172+
- name: L1_PRIORITY_FEE_BUMP_PERCENTAGE
173+
value: {{ .Values.validator.l1PriorityFeeBumpPercentage | quote }}
174+
{{- end }}
175+
{{- if .Values.validator.l1PriorityFeeRetryBumpPercentage }}
176+
- name: L1_PRIORITY_FEE_RETRY_BUMP_PERCENTAGE
177+
value: {{ .Values.validator.l1PriorityFeeRetryBumpPercentage | quote }}
178+
{{- end }}
169179
- name: L1_GAS_LIMIT_BUFFER_PERCENTAGE
170180
value: {{ .Values.validator.l1GasLimitBufferPercentage | quote }}
171181
- name: L1_GAS_PRICE_MAX

spartan/aztec-network/values/archival-node.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ network:
1212
ethereum:
1313
chainId: "11155111"
1414
l1GasPriceMax: 1000
15-
l1FixedPriorityFeePerGas: 3
15+
l1PriorityFeeBumpPercentage: 30
16+
l1PriorityFeeRetryBumpPercentage: 80
1617

1718
aztec:
1819
realProofs: true

spartan/aztec-network/values/ci-fast-epoch.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ telemetry:
1414
enabled: false
1515

1616
validator:
17-
l1FixedPriorityFeePerGas: 1
17+
l1PriorityFeeBumpPercentage: 30
18+
l1PriorityFeeRetryBumpPercentage: 80
1819
replicas: 4
1920
gke:
2021
spotEnabled: false

spartan/aztec-network/values/ci-sepolia.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ aztec:
99
ethereum:
1010
chainId: "11155111"
1111
l1GasPriceMax: 500
12-
l1FixedPriorityFeePerGas: 3
12+
l1PriorityFeeBumpPercentage: 30
13+
l1PriorityFeeRetryBumpPercentage: 80
1314
execution:
1415
externalHosts: ""
1516
beacon:
@@ -21,7 +22,8 @@ telemetry:
2122
enabled: false
2223

2324
validator:
24-
l1FixedPriorityFeePerGas: 3
25+
l1PriorityFeeBumpPercentage: 30
26+
l1PriorityFeeRetryBumpPercentage: 80
2527
l1GasLimitBufferPercentage: 15
2628
replicas: 8
2729
resources:

spartan/aztec-network/values/ignition-testnet.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ bootNode:
2323
externalHost: "http://localhost:8080"
2424

2525
proverNode:
26-
l1FixedPriorityFeePerGas: 3
26+
l1PriorityFeeBumpPercentage: 30
27+
l1PriorityFeeRetryBumpPercentage: 80
2728
l1GasLimitBufferPercentage: 15
2829
l1GasPriceMax: 1000
2930

3031
validator:
3132
replicas: 3
32-
l1FixedPriorityFeePerGas: 3
33+
l1PriorityFeeBumpPercentage: 30
34+
l1PriorityFeeRetryBumpPercentage: 80
3335
l1GasLimitBufferPercentage: 15
3436
l1GasPriceMax: 1000
3537
sequencer:
@@ -55,4 +57,5 @@ proverAgent:
5557
ethereum:
5658
chainId: "11155111"
5759
l1GasPriceMax: 1000
58-
l1FixedPriorityFeePerGas: 3
60+
l1PriorityFeeBumpPercentage: 30
61+
l1PriorityFeeRetryBumpPercentage: 80

spartan/aztec-network/values/rc-2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ ethereum:
2424
apiKeyHeader: ""
2525

2626
validator:
27-
l1FixedPriorityFeePerGas: 2
27+
l1PriorityFeeBumpPercentage: 30
28+
l1PriorityFeeRetryBumpPercentage: 80
2829
l1GasLimitBufferPercentage: 15
2930
replicas: 48
3031
l1GasPriceMax: 500
@@ -63,4 +64,3 @@ bot:
6364
memory: "8Gi"
6465
cpu: "7"
6566
ephemeral-storage: "8Gi"
66-

spartan/aztec-network/values/sepolia-3-validators-with-metrics.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ ethereum:
1919
apiKeyHeader:
2020

2121
validator:
22-
l1FixedPriorityFeePerGas: 2
22+
l1PriorityFeeBumpPercentage: 30
23+
l1PriorityFeeRetryBumpPercentage: 80
2324
l1GasLimitBufferPercentage: 15
2425
l1GasPriceMax: 500
2526
replicas: 3

spartan/aztec-network/values/sepolia-48-validators-with-metrics.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ ethereum:
1919
apiKeyHeader: ""
2020

2121
validator:
22-
l1FixedPriorityFeePerGas: 2
22+
l1PriorityFeeBumpPercentage: 30
23+
l1PriorityFeeRetryBumpPercentage: 80
2324
l1GasLimitBufferPercentage: 15
2425
l1GasPriceMax: 500
2526
replicas: 48

0 commit comments

Comments
 (0)