From 899670e1e96da44836380f091696e4b792821657 Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Wed, 15 Apr 2020 15:08:45 +0100 Subject: [PATCH] Fix bad log messages for duplicate deposits (#5440) * Fix bad log messages --- beacon-chain/powchain/log_processing.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/beacon-chain/powchain/log_processing.go b/beacon-chain/powchain/log_processing.go index 19b2f019e19..53a93d9192d 100644 --- a/beacon-chain/powchain/log_processing.go +++ b/beacon-chain/powchain/log_processing.go @@ -156,13 +156,12 @@ func (s *Service) ProcessDepositLog(ctx context.Context, depositLog gethTypes.Lo // Make sure duplicates are rejected pre-chainstart. if !s.chainStartData.Chainstarted { - var pubkey = fmt.Sprintf("#%x", depositData.PublicKey) + var pubkey = fmt.Sprintf("%#x", depositData.PublicKey) if s.depositCache.PubkeyInChainstart(ctx, pubkey) { - log.Warnf("Pubkey %#x has already been submitted for chainstart", pubkey) + log.WithField("publicKey", pubkey).Warn("Pubkey has already been submitted for chainstart") } else { s.depositCache.MarkPubkeyForChainstart(ctx, pubkey) } - } // We always store all historical deposits in the DB.