Skip to content

Commit

Permalink
Merge branch 'rapidsnark' of https://github.com/ethstorage/es-node in…
Browse files Browse the repository at this point in the history
…to rapidsnark-test
  • Loading branch information
syntrust committed May 9, 2024
2 parents 798e957 + 3be5002 commit 722b0d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/es-node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
var (
GitCommit = ""
GitDate = ""
Version = "v0.1.14"
Version = "v0.1.15"
Meta = "dev"
BuildTime = ""
systemVersion = fmt.Sprintf("%s/%s", runtime.GOARCH, runtime.GOOS)
Expand Down
2 changes: 1 addition & 1 deletion ethstorage/metrics/network_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (m *NetworkMetrics) SetStaticMetrics(peersTotal int, minerOfShards map[uint

func (m *NetworkMetrics) DeletePeerInfo(id, version, address string, shardId uint64, miner common.Address) {
types := []string{"UpdateTime", "PeerCount", "SyncProgress", "SyncedSeconds", "FillEmptyProgress", "FillEmptySeconds",
"MiningPower", "SamplingTime", "Succeeded", "Failed", "Dropped", "LastSucceededTime"}
"MiningPower", "SamplingTime", "Succeeded", "Failed", "Dropped", "LastSucceededTime", "ProvidedBlobs"}
for _, t := range types {
m.PeerState.DeleteLabelValues(fmt.Sprintf(format, id, version, address, shardId, miner.Hex()), t)
}
Expand Down
1 change: 1 addition & 0 deletions ethstorage/p2p/protocol/syncclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ func (s *SyncClient) loadSyncStatus() {
if t.Contract == s.storageManager.ContractAddress() && t.ShardId == sid {
if states != nil {
if state, ok := states[t.ShardId]; ok {
state.PeerCount = 0
t.state = state
}
}
Expand Down

0 comments on commit 722b0d8

Please sign in to comment.