Skip to content

Commit

Permalink
Address PR comments [4]
Browse files Browse the repository at this point in the history
  • Loading branch information
swift1337 committed Nov 22, 2024
1 parent 6036675 commit e3f43d8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## Unreleased

## Refactor
* [3170](https://github.com/zeta-chain/node/pull/3170) - revamp TSS package in zetaclient

## v23.0.0

### Features
Expand All @@ -25,7 +30,6 @@
* [3125](https://github.com/zeta-chain/node/pull/3125) - drop support for header proofs
* [3131](https://github.com/zeta-chain/node/pull/3131) - move app context update from zetacore client
* [3137](https://github.com/zeta-chain/node/pull/3137) - remove chain.Chain from zetaclientd config
* [3170](https://github.com/zeta-chain/node/pull/3170) - revamp TSS package in zetaclient

### Fixes

Expand Down
6 changes: 3 additions & 3 deletions zetaclient/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ var (
Help: "Count of getLogs per chain",
}, []string{"chain"})

// TssNodeBlamePerPubKey is a counter that contains the number of tss node blame per pubkey
TssNodeBlamePerPubKey = promauto.NewCounterVec(prometheus.CounterOpts{
// TSSNodeBlamePerPubKey is a counter that contains the number of tss node blame per pubkey
TSSNodeBlamePerPubKey = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: ZetaClientNamespace,
Name: "tss_node_blame_count",
Help: "Tss node blame counter per pubkey",
Help: "TSS node blame counter per pubkey",
}, []string{"pubkey"})

// RelayerKeyBalance is a gauge that contains the relayer key balance of the chain
Expand Down
1 change: 1 addition & 0 deletions zetaclient/tss/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
)

const (
// Port is the default port for go-tss server.
Port = 6668
Version = "0.14.0"
Algo = tsscommon.ECDSA
Expand Down
2 changes: 1 addition & 1 deletion zetaclient/tss/keygen.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (k *keygenCeremony) performKeygen(ctx context.Context, keygenTask observert

// increment blame counter
for _, node := range res.Blame.BlameNodes {
metrics.TssNodeBlamePerPubKey.WithLabelValues(node.Pubkey).Inc()
metrics.TSSNodeBlamePerPubKey.WithLabelValues(node.Pubkey).Inc()
}

blameDigest, err := digestReq(req)
Expand Down
2 changes: 1 addition & 1 deletion zetaclient/tss/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func Setup(ctx context.Context, p SetupProps, logger zerolog.Logger) (*Service,
WithMetrics(ctx, p.Zetacore, &Metrics{
ActiveMsgsSigns: metrics.NumActiveMsgSigns,
SignLatency: metrics.SignLatency,
NodeBlamePerPubKey: metrics.TssNodeBlamePerPubKey,
NodeBlamePerPubKey: metrics.TSSNodeBlamePerPubKey,
}),
)
if err != nil {
Expand Down

0 comments on commit e3f43d8

Please sign in to comment.