Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion spartan/environments/network-defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ networks:
# Prover
PROVER_REAL_PROOFS: true
# Sync
SYNC_SNAPSHOTS_URLS: "https://aztec-labs-snapshots.com/mainnet/"
BLOB_ALLOW_EMPTY_SOURCES: true
# P2P
P2P_MAX_PENDING_TX_COUNT: 1000
Expand Down
2 changes: 1 addition & 1 deletion spartan/scripts/deploy_network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ PROVER_FAILED_PROOF_STORE=${PROVER_FAILED_PROOF_STORE:-}
SEQ_MIN_TX_PER_BLOCK=${SEQ_MIN_TX_PER_BLOCK:-1}
SEQ_MAX_TX_PER_BLOCK=${SEQ_MAX_TX_PER_BLOCK:-null}
SEQ_MAX_TX_PER_CHECKPOINT=${SEQ_MAX_TX_PER_CHECKPOINT:-8}
SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER=${SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER:-2}
SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER=${SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER:-}
SEQ_BLOCK_DURATION_MS=${SEQ_BLOCK_DURATION_MS:-}
SEQ_L1_PUBLISHING_TIME_ALLOWANCE_IN_SLOT=${SEQ_L1_PUBLISHING_TIME_ALLOWANCE_IN_SLOT:-}
SEQ_BUILD_CHECKPOINT_IF_EMPTY=${SEQ_BUILD_CHECKPOINT_IF_EMPTY:-}
Expand Down
3 changes: 3 additions & 0 deletions yarn-project/cli/src/config/network_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ export async function enrichEnvironmentWithNetworkConfig(networkName: NetworkNam
if (networkConfig.blobFileStoreUrls?.length) {
enrichVar('BLOB_FILE_STORE_URLS', networkConfig.blobFileStoreUrls.join(','));
}
if (networkConfig.txCollectionFileStoreUrls?.length) {
enrichVar('TX_COLLECTION_FILE_STORE_URLS', networkConfig.txCollectionFileStoreUrls.join(','));
}
if (networkConfig.blockDurationMs !== undefined) {
enrichVar('SEQ_BLOCK_DURATION_MS', String(networkConfig.blockDurationMs));
}
Expand Down
1 change: 1 addition & 0 deletions yarn-project/foundation/src/config/network_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const NetworkConfigSchema = z
bootnodes: z.array(z.string()),
snapshots: z.array(z.string()),
blobFileStoreUrls: z.array(z.string()).optional(),
txCollectionFileStoreUrls: z.array(z.string()).optional(),
registryAddress: z.string(),
feeAssetHandlerAddress: z.string().optional(),
l1ChainId: z.number(),
Expand Down
7 changes: 2 additions & 5 deletions yarn-project/p2p/src/mem_pools/tx_pool/priority.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ export function getPendingTxPriority(tx: Tx): string {
}

/**
* Returns the priority of a tx based on the priority fees, capped by the max fees per gas.
* Returns the priority of a tx based on the L2 priority fee only, capped by the max fees per gas.
*/
export function getTxPriorityFee(tx: Tx): bigint {
const { maxPriorityFeesPerGas: priorityFees, maxFeesPerGas } = tx.getGasSettings();
const totalFees =
minBigint(maxFeesPerGas.feePerDaGas, priorityFees.feePerDaGas) +
minBigint(maxFeesPerGas.feePerL2Gas, priorityFees.feePerL2Gas);
return totalFees;
return minBigint(maxFeesPerGas.feePerL2Gas, priorityFees.feePerL2Gas);
}
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ function squashTransientSideEffects(
scopedNullifiersCLA,
/*futureNoteHashReads=*/ [],
/*futureNullifierReads=*/ [],
/*futureLogs=*/ [],
noteHashNullifierCounterMap,
minRevertibleSideEffectCounter,
);
Expand Down Expand Up @@ -731,16 +732,8 @@ async function verifyReadRequests(
nullifierReadRequests.length,
);

const noteHashResetActions = getNoteHashReadRequestResetActions(
noteHashReadRequestsCLA,
scopedNoteHashesCLA,
/*futureNoteHashes=*/ [],
);
const nullifierResetActions = getNullifierReadRequestResetActions(
nullifierReadRequestsCLA,
scopedNullifiersCLA,
/*futureNullifiers=*/ [],
);
const noteHashResetActions = getNoteHashReadRequestResetActions(noteHashReadRequestsCLA, scopedNoteHashesCLA);
const nullifierResetActions = getNullifierReadRequestResetActions(nullifierReadRequestsCLA, scopedNullifiersCLA);

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