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
2 changes: 1 addition & 1 deletion yarn-project/archiver/src/modules/data_store_updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class ArchiverDataStoreUpdater {
this.log.verbose(`Block number ${blockNumber} already inserted and matches checkpoint`, blockInfos);
lastAlreadyInsertedBlockNumber = blockNumber;
} else {
this.log.warn(`Conflict detected at block ${blockNumber} between checkpointed and local block`, blockInfos);
this.log.info(`Conflict detected at block ${blockNumber} between checkpointed and local block`, blockInfos);
const prunedBlocks = await this.removeBlocksAfter(BlockNumber(blockNumber - 1));
return { prunedBlocks, lastAlreadyInsertedBlockNumber };
}
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/archiver/src/modules/l1_synchronizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ export class ArchiverL1Synchronizer implements Traceable {
const prunedCheckpointNumber = result.prunedBlocks[0].checkpointNumber;
const prunedSlotNumber = result.prunedBlocks[0].header.globalVariables.slotNumber;

this.log.warn(
this.log.info(
`Pruned ${result.prunedBlocks.length} mismatching blocks for checkpoint ${prunedCheckpointNumber}`,
{ prunedBlocks: result.prunedBlocks.map(b => b.toBlockInfo()), prunedSlotNumber, prunedCheckpointNumber },
);
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/services/libp2p/libp2p_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ export class LibP2PService extends WithTracer implements P2PService {
// Note: Validators do NOT attest to individual blocks, only to checkpoint proposals.
const isValid = await this.blockReceivedCallback(block, sender);
if (!isValid) {
this.logger.warn(`Block proposal validation failed for block ${block.blockNumber}`, block.toBlockInfo());
this.logger.info(`Block proposal validation failed for block ${block.blockNumber}`, block.toBlockInfo());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class HAKeyStore implements ExtendedValidatorKeyStore {
}

if (error instanceof SlashingProtectionError) {
this.log.warn(`Duty already signed by another node with different payload`, {
this.log.info(`Duty already signed by another node with different payload`, {
dutyType: context.dutyType,
slot: context.slot,
existingMessageHash: error.existingMessageHash,
Expand Down
9 changes: 5 additions & 4 deletions yarn-project/validator-client/src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ export class ValidatorClient extends (EventEmitter as new () => WatcherEmitter)

// Ignore proposals from ourselves (may happen in HA setups)
if (this.getValidatorAddresses().some(addr => addr.equals(proposer))) {
this.log.warn(`Ignoring block proposal from self for slot ${slotNumber}`, {
this.log.debug(`Ignoring block proposal from self for slot ${slotNumber}`, {
proposer: proposer.toString(),
slotNumber,
});
Expand Down Expand Up @@ -416,9 +416,10 @@ export class ValidatorClient extends (EventEmitter as new () => WatcherEmitter)
);

if (!validationResult.isValid) {
this.log.warn(`Block proposal validation failed: ${validationResult.reason}`, proposalInfo);

const reason = validationResult.reason || 'unknown';

this.log.warn(`Block proposal validation failed: ${reason}`, proposalInfo);

// Classify failure reason: bad proposal vs node issue
const badProposalReasons: BlockProposalValidationFailureReason[] = [
'invalid_proposal',
Expand Down Expand Up @@ -490,7 +491,7 @@ export class ValidatorClient extends (EventEmitter as new () => WatcherEmitter)

// Ignore proposals from ourselves (may happen in HA setups)
if (this.getValidatorAddresses().some(addr => addr.equals(proposer))) {
this.log.warn(`Ignoring block proposal from self for slot ${slotNumber}`, {
this.log.debug(`Ignoring block proposal from self for slot ${slotNumber}`, {
proposer: proposer.toString(),
slotNumber,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class SlashingProtectionService {

if (isNew) {
// We successfully acquired the lock
this.log.info(`Acquired lock for duty ${dutyType} at slot ${slot}`, {
this.log.verbose(`Acquired lock for duty ${dutyType} at slot ${slot}`, {
validatorAddress: validatorAddress.toString(),
nodeId,
});
Expand Down Expand Up @@ -177,7 +177,7 @@ export class SlashingProtectionService {
);

if (success) {
this.log.info(`Recorded successful signing for duty ${dutyType} at slot ${slot}`, {
this.log.verbose(`Recorded successful signing for duty ${dutyType} at slot ${slot}`, {
validatorAddress: validatorAddress.toString(),
nodeId,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export class ServerWorldStateSynchronizer
}

private async handleChainPruned(blockNumber: BlockNumber) {
this.log.warn(`Chain pruned to block ${blockNumber}`);
this.log.info(`Chain pruned to block ${blockNumber}`);
const status = await this.merkleTreeDb.unwindBlocks(blockNumber);
this.provenBlockNumber = undefined;
this.instrumentation.updateWorldStateMetrics(status);
Expand Down
Loading