Skip to content

Commit

Permalink
Code review rework
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Jan 17, 2025
1 parent 864d70a commit e8c083d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions node/pkg/processor/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"encoding/hex"
"time"

"github.com/mr-tron/base58"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"

Expand Down Expand Up @@ -79,6 +81,7 @@ func (p *Processor) handleMessage(ctx context.Context, k *common.MessagePublicat
p.logger.Debug("observed and signed confirmed message publication",
zap.String("message_id", k.MessageIDString()),
zap.String("txID", k.TxIDString()),
zap.String("txID_b58", base58.Encode(k.TxID)),
zap.String("hash", hash),
zap.Uint32("nonce", k.Nonce),
zap.Time("timestamp", k.Timestamp),
Expand Down
2 changes: 2 additions & 0 deletions node/pkg/processor/observation.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

node_common "github.com/certusone/wormhole/node/pkg/common"
"github.com/certusone/wormhole/node/pkg/db"
"github.com/mr-tron/base58"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"

Expand Down Expand Up @@ -112,6 +113,7 @@ func (p *Processor) handleSingleObservation(addr []byte, m *gossipv1.Observation
zap.String("signature", hex.EncodeToString(m.Signature)),
zap.String("addr", hex.EncodeToString(addr)),
zap.String("txhash", hex.EncodeToString(m.TxHash)),
zap.String("txhash_b58", base58.Encode(m.TxHash)),
)
}

Expand Down

0 comments on commit e8c083d

Please sign in to comment.