Skip to content

Commit

Permalink
Fix bad log messages for duplicate deposits (#5440)
Browse files Browse the repository at this point in the history
* Fix bad log messages
  • Loading branch information
mcdee committed Apr 15, 2020
1 parent ef21456 commit 899670e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions beacon-chain/powchain/log_processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 899670e

Please sign in to comment.