Skip to content

Commit

Permalink
Fixes post rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Dec 9, 2024
1 parent a35e466 commit cbb29f5
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions yarn-project/aztec.js/src/utils/node.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { type AztecNode } from '@aztec/circuit-types';
import { type DebugLogger } from '@aztec/foundation/log';
import { type Logger } from '@aztec/foundation/log';
import { retryUntil } from '@aztec/foundation/retry';

export const waitForNode = async (node: AztecNode, logger?: DebugLogger) => {
export const waitForNode = async (node: AztecNode, logger?: Logger) => {
await retryUntil(async () => {
try {
logger?.verbose('Attempting to contact Aztec node...');
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/epoch-cache/src/epoch_cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class EpochCache {
private committee: EthAddress[];
private cachedEpoch: bigint;
private cachedSampleSeed: bigint;
private readonly log: Logger = createLogger('aztec:EpochCache');
private readonly log: Logger = createLogger('epoch-cache');

constructor(
private rollup: RollupContract,
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/foundation/src/wasm/wasm_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class WasmModule implements IWasmModule {
constructor(
private module: WebAssembly.Module | Buffer,
private importFn: (module: WasmModule) => any,
loggerName = 'aztec:wasm',
loggerName = 'wasm',
) {
this.debug = createDebugOnlyLogger(loggerName);
this.mutexQ.put(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { type CompiledCircuit } from '@noir-lang/types';
import { pascalCase } from 'change-case';
import { promises as fs } from 'fs';

const log = createConsoleLogger('aztec:mock-circuits');
const log = createConsoleLogger('mock-circuits');

const circuits = [
'app_creator',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { createConsoleLogger } from '@aztec/foundation/log';

import { promises as fs } from 'fs';

const log = createConsoleLogger('aztec:autogenerate');
const log = createConsoleLogger('autogenerate');

const outputFilename = './src/private_kernel_reset_data.ts';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { type CompiledCircuit } from '@noir-lang/types';
import { pascalCase } from 'change-case';
import { promises as fs } from 'fs';

const log = createConsoleLogger('aztec:autogenerate');
const log = createConsoleLogger('autogenerate');

const circuits = [
'parity_base',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { fileURLToPath } from '@aztec/foundation/url';
import { promises as fs } from 'fs';
import { join } from 'path';

const log = createConsoleLogger('aztec:autogenerate');
const log = createConsoleLogger('autogenerate');

function resolveRelativePath(relativePath: string) {
return fileURLToPath(new URL(relativePath, import.meta.url).href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import path from 'path';

import { buildProtocolContractTree } from '../build_protocol_contract_tree.js';

const log = createConsoleLogger('aztec:autogenerate');
const log = createConsoleLogger('autogenerate');

const noirContractsRoot = '../../noir-projects/noir-contracts';
const srcPath = path.join(noirContractsRoot, './target');
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/pxe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"formatting": "run -T prettier --check ./src && run -T eslint ./src",
"formatting:fix": "run -T eslint --fix ./src && run -T prettier -w ./src",
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests",
"start": "DEBUG='aztec:*' && node ./dest/bin/index.js",
"start": "LOG_LEVEL=${LOG_LEVEL:-debug} && node ./dest/bin/index.js",
"generate": "node ./scripts/generate_package_info.js"
},
"inherits": [
Expand Down
8 changes: 4 additions & 4 deletions yarn-project/pxe/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BBNativePrivateKernelProver } from '@aztec/bb-prover';
import { type AztecNode, type PrivateKernelProver } from '@aztec/circuit-types';
import { randomBytes } from '@aztec/foundation/crypto';
import { createDebugLogger } from '@aztec/foundation/log';
import { createLogger } from '@aztec/foundation/log';
import { KeyStore } from '@aztec/key-store';
import { createStore } from '@aztec/kv-store/lmdb';
import { L2TipsStore } from '@aztec/kv-store/stores';
Expand Down Expand Up @@ -38,10 +38,10 @@ export async function createPXEService(
} as PXEServiceConfig;

const keyStore = new KeyStore(
await createStore('pxe_key_store', configWithContracts, createDebugLogger('aztec:pxe:keystore:lmdb')),
await createStore('pxe_key_store', configWithContracts, createLogger('pxe:keystore:lmdb')),
);

const store = await createStore('pxe_data', configWithContracts, createDebugLogger('aztec:pxe:data:lmdb'));
const store = await createStore('pxe_data', configWithContracts, createLogger('pxe:data:lmdb'));

const db = await KVPxeDatabase.create(store);
const tips = new L2TipsStore(store, 'pxe');
Expand All @@ -62,6 +62,6 @@ function createProver(config: PXEServiceConfig, logSuffix?: string) {
throw new Error(`Prover must be configured with binary path and working directory`);
}
const bbConfig = config as Required<Pick<PXEServiceConfig, 'bbBinaryPath' | 'bbWorkingDirectory'>> & PXEServiceConfig;
const log = createDebugLogger('aztec:pxe:bb-native-prover' + (logSuffix ? `:${logSuffix}` : ''));
const log = createLogger('pxe:bb-native-prover' + (logSuffix ? `:${logSuffix}` : ''));
return BBNativePrivateKernelProver.new({ bbSkipCleanup: false, ...bbConfig }, log);
}

0 comments on commit cbb29f5

Please sign in to comment.