node/pkg/ethereum: log blockhash for new message publications (#910)

This commit is contained in:
Leopold Schabel 2022-03-03 21:31:15 +01:00 committed by GitHub
parent 3e51512aec
commit d40a70a37f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -324,8 +324,11 @@ func (e *Watcher) Run(ctx context.Context) error {
ConsistencyLevel: ev.ConsistencyLevel,
}
logger.Info("found new message publication transaction", zap.Stringer("tx", ev.Raw.TxHash),
zap.Uint64("block", ev.Raw.BlockNumber), zap.String("eth_network", e.networkName))
logger.Info("found new message publication transaction",
zap.Stringer("tx", ev.Raw.TxHash),
zap.Uint64("block", ev.Raw.BlockNumber),
zap.Stringer("blockhash", ev.Raw.BlockHash),
zap.String("eth_network", e.networkName))
ethMessagesObserved.WithLabelValues(e.networkName).Inc()