Skip to content
Merged
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
7 changes: 1 addition & 6 deletions yarn-project/txe/src/oracle/txe_oracle_top_level_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,6 @@ export class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecutionOracl
// empty scope list which acts as deny-all: no notes are visible and no keys are accessible.
const effectiveScopes = from.isZero() ? [] : [from];

// For the sync step, we use all registered accounts as scopes. Note discovery during sync needs
// broader key access (e.g. to compute nullifiers for notes belonging to any registered account),
// while the private execution itself remains restricted to `effectiveScopes`.
const syncScopes = from.isZero() ? [] : await this.keyStore.getAccounts();

// Sync notes before executing private function to discover notes from previous transactions
const utilityExecutor = async (call: FunctionCall, execScopes: AztecAddress[]) => {
await this.executeUtilityCall(call, execScopes, jobId);
Expand All @@ -344,7 +339,7 @@ export class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecutionOracl
utilityExecutor,
blockHeader,
jobId,
syncScopes,
effectiveScopes,
);

const blockNumber = await this.getNextBlockNumber();
Expand Down
Loading