Skip to content

Commit 9ada8b8

Browse files
authored
chore: Accumulated backports to v4 (#21410)
BEGIN_COMMIT_OVERRIDE fix: fall back to package.json for CLI version detection (#21382) chore: Removed multiplier config (#21412) chore: Removed default snapshot url config (#21413) chore: Read tx filestores from network config (#21416) feat(p2p): use l2 priority fee only for tx priority (#21420) fix: update private kernel reset hints builder (#20760) END_COMMIT_OVERRIDE
2 parents 79156c4 + 2d467c9 commit 9ada8b8

19 files changed

Lines changed: 2035 additions & 292 deletions

spartan/environments/network-defaults.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ networks:
332332
# Prover
333333
PROVER_REAL_PROOFS: true
334334
# Sync
335-
SYNC_SNAPSHOTS_URLS: "https://aztec-labs-snapshots.com/mainnet/"
336335
BLOB_ALLOW_EMPTY_SOURCES: true
337336
# P2P
338337
P2P_MAX_PENDING_TX_COUNT: 1000

spartan/scripts/deploy_network.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ PROVER_FAILED_PROOF_STORE=${PROVER_FAILED_PROOF_STORE:-}
107107
SEQ_MIN_TX_PER_BLOCK=${SEQ_MIN_TX_PER_BLOCK:-1}
108108
SEQ_MAX_TX_PER_BLOCK=${SEQ_MAX_TX_PER_BLOCK:-null}
109109
SEQ_MAX_TX_PER_CHECKPOINT=${SEQ_MAX_TX_PER_CHECKPOINT:-8}
110-
SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER=${SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER:-2}
110+
SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER=${SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER:-}
111111
SEQ_BLOCK_DURATION_MS=${SEQ_BLOCK_DURATION_MS:-}
112112
SEQ_L1_PUBLISHING_TIME_ALLOWANCE_IN_SLOT=${SEQ_L1_PUBLISHING_TIME_ALLOWANCE_IN_SLOT:-}
113113
SEQ_BUILD_CHECKPOINT_IF_EMPTY=${SEQ_BUILD_CHECKPOINT_IF_EMPTY:-}

yarn-project/cli/src/config/network_config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ export async function enrichEnvironmentWithNetworkConfig(networkName: NetworkNam
139139
if (networkConfig.blobFileStoreUrls?.length) {
140140
enrichVar('BLOB_FILE_STORE_URLS', networkConfig.blobFileStoreUrls.join(','));
141141
}
142+
if (networkConfig.txCollectionFileStoreUrls?.length) {
143+
enrichVar('TX_COLLECTION_FILE_STORE_URLS', networkConfig.txCollectionFileStoreUrls.join(','));
144+
}
142145
if (networkConfig.blockDurationMs !== undefined) {
143146
enrichVar('SEQ_BLOCK_DURATION_MS', String(networkConfig.blockDurationMs));
144147
}

yarn-project/foundation/src/config/network_config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const NetworkConfigSchema = z
55
bootnodes: z.array(z.string()),
66
snapshots: z.array(z.string()),
77
blobFileStoreUrls: z.array(z.string()).optional(),
8+
txCollectionFileStoreUrls: z.array(z.string()).optional(),
89
registryAddress: z.string(),
910
feeAssetHandlerAddress: z.string().optional(),
1011
l1ChainId: z.number(),

yarn-project/p2p/src/mem_pools/tx_pool/priority.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ export function getPendingTxPriority(tx: Tx): string {
1212
}
1313

1414
/**
15-
* Returns the priority of a tx based on the priority fees, capped by the max fees per gas.
15+
* Returns the priority of a tx based on the L2 priority fee only, capped by the max fees per gas.
1616
*/
1717
export function getTxPriorityFee(tx: Tx): bigint {
1818
const { maxPriorityFeesPerGas: priorityFees, maxFeesPerGas } = tx.getGasSettings();
19-
const totalFees =
20-
minBigint(maxFeesPerGas.feePerDaGas, priorityFees.feePerDaGas) +
21-
minBigint(maxFeesPerGas.feePerL2Gas, priorityFees.feePerL2Gas);
22-
return totalFees;
19+
return minBigint(maxFeesPerGas.feePerL2Gas, priorityFees.feePerL2Gas);
2320
}

yarn-project/pxe/src/contract_function_simulator/contract_function_simulator.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ function squashTransientSideEffects(
689689
scopedNullifiersCLA,
690690
/*futureNoteHashReads=*/ [],
691691
/*futureNullifierReads=*/ [],
692+
/*futureLogs=*/ [],
692693
noteHashNullifierCounterMap,
693694
minRevertibleSideEffectCounter,
694695
);
@@ -731,16 +732,8 @@ async function verifyReadRequests(
731732
nullifierReadRequests.length,
732733
);
733734

734-
const noteHashResetActions = getNoteHashReadRequestResetActions(
735-
noteHashReadRequestsCLA,
736-
scopedNoteHashesCLA,
737-
/*futureNoteHashes=*/ [],
738-
);
739-
const nullifierResetActions = getNullifierReadRequestResetActions(
740-
nullifierReadRequestsCLA,
741-
scopedNullifiersCLA,
742-
/*futureNullifiers=*/ [],
743-
);
735+
const noteHashResetActions = getNoteHashReadRequestResetActions(noteHashReadRequestsCLA, scopedNoteHashesCLA);
736+
const nullifierResetActions = getNullifierReadRequestResetActions(nullifierReadRequestsCLA, scopedNullifiersCLA);
744737

745738
const settledNoteHashReads: { index: number; value: Fr }[] = [];
746739
for (let i = 0; i < noteHashResetActions.actions.length; i++) {

0 commit comments

Comments
 (0)