Skip to content

Commit

Permalink
Temporarily removes Yangon upgrade due to inconsistent block times
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashy5000 committed Jul 28, 2024
1 parent 053279e commit bbfca6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion env.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"guadalajara": 8,
"jinan": 9,
"alexandria": 9,
"yangon": 10,
"yangon": -1,
"washington": 10,
"dalian": 12
}
Expand Down
2 changes: 1 addition & 1 deletion node_util/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bbfca6a

Please sign in to comment.