Skip to content

Commit

Permalink
fix: log invalid deposit data
Browse files Browse the repository at this point in the history
  • Loading branch information
avsetsin committed Jul 14, 2022
1 parent 6fef341 commit eff7f91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bls/bls.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ export class BlsService implements OnModuleInit {

return blst.verify(signingRoot, blsPublicKey, blsSignature);
} catch (error) {
this.logger.warn('Failed to verify deposit data', depositData);
this.logger.error(error);
this.logger.warn('Deposit data is not valid', {
...depositData,
error: String(error),
});

return false;
}
Expand Down

0 comments on commit eff7f91

Please sign in to comment.