From 21cdfcadabac20eb3ef6f843e61269f84e5271ac Mon Sep 17 00:00:00 2001 From: pingke Date: Tue, 7 May 2024 18:01:07 +0800 Subject: [PATCH 1/2] bug fix --- ethstorage/metrics/network_metrics.go | 2 +- ethstorage/p2p/protocol/syncclient.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 } } From 4aa7d5dbaac5b6a6377ed989352e06cebe083b22 Mon Sep 17 00:00:00 2001 From: syntrust Date: Wed, 8 May 2024 10:07:46 +0800 Subject: [PATCH 2/2] prompt version --- cmd/es-node/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/es-node/main.go b/cmd/es-node/main.go index 75743e08..101d09ed 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)