From bbfca6a23f8297e977a434042f7195a48f898d18 Mon Sep 17 00:00:00 2001 From: Ashy5000 Date: Sun, 28 Jul 2024 12:32:45 -0700 Subject: [PATCH] Temporarily removes Yangon upgrade due to inconsistent block times --- env.json | 2 +- node_util/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/env.json b/env.json index 68a991a..df07f87 100644 --- a/env.json +++ b/env.json @@ -4,7 +4,7 @@ "guadalajara": 8, "jinan": 9, "alexandria": 9, - "yangon": 10, + "yangon": -1, "washington": 10, "dalian": 12 } diff --git a/node_util/server.go b/node_util/server.go index b9b7171..a84fb62 100644 --- a/node_util/server.go +++ b/node_util/server.go @@ -265,7 +265,7 @@ func HandleVerifyTimeRequest(w http.ResponseWriter, req *http.Request) { var miningFinishedTime time.Time if block.MiningTime > 0 { // Get the time mining finished - if Env.Upgrades.Yangon <= len(Blockchain) { + if Env.Upgrades.Yangon <= len(Blockchain) && Env.Upgrades.Yangon != -1 { previousBlockFinishedTime := Blockchain[len(Blockchain)-1].Timestamp.Add(Blockchain[len(Blockchain)-1].MiningTime) currentTime = previousBlockFinishedTime.Add(block.MiningTime) } else {