diff --git a/cmd/es-node/main.go b/cmd/es-node/main.go index 494d299f..6d355b75 100644 --- a/cmd/es-node/main.go +++ b/cmd/es-node/main.go @@ -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) diff --git a/ethstorage/metrics/network_metrics.go b/ethstorage/metrics/network_metrics.go index 72be0402..02508695 100644 --- a/ethstorage/metrics/network_metrics.go +++ b/ethstorage/metrics/network_metrics.go @@ -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) } diff --git a/ethstorage/p2p/protocol/syncclient.go b/ethstorage/p2p/protocol/syncclient.go index a8c8e603..b3cfaa53 100644 --- a/ethstorage/p2p/protocol/syncclient.go +++ b/ethstorage/p2p/protocol/syncclient.go @@ -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 } }