Skip to content

Commit

Permalink
Log Ethereum 1 deposits before chainstart (#4499)
Browse files Browse the repository at this point in the history
* Log Ethereum 1 deposits before chainstart
* Merge branch 'master' into logdeposits
  • Loading branch information
mcdee authored and prylabs-bulldozer[bot] committed Jan 11, 2020
1 parent 5077c00 commit ea12ffa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions beacon-chain/powchain/log_processing.go
Expand Up @@ -184,6 +184,13 @@ func (s *Service) ProcessDepositLog(ctx context.Context, depositLog gethTypes.Lo
"merkleTreeIndex": index,
}).Debug("Deposit registered from deposit contract")
validDepositsCount.Inc()
// Notify users what is going on, from time to time.
if !s.chainStartData.Chainstarted {
deposits := len(s.chainStartData.ChainstartDeposits)
if deposits%512 == 0 {
log.WithField("deposits", deposits).Info("Processing deposits from Ethereum 1 chain")
}
}
} else {
log.WithFields(logrus.Fields{
"eth1Block": depositLog.BlockHash.Hex(),
Expand Down

0 comments on commit ea12ffa

Please sign in to comment.