Skip to content

Commit

Permalink
fix default hardfork round
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Feb 2, 2024
1 parent 743fe5c commit 9568cf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/0chain/gosdk/core/encryption"
"github.com/0chain/gosdk/core/util"
"github.com/0chain/gosdk/zboxcore/logger"
"github.com/ethereum/go-ethereum/common/math"
)

const statSize = 20
Expand Down Expand Up @@ -384,8 +385,8 @@ func (h *NodeHolder) GetHardForkRound(hardFork string) (int64, error) {

consensus := int64(0)
roundMap := make(map[int64]int64)

round := int64(0)
// If error then set it to max int64
round := int64(math.MaxInt64)

waitTimeC := time.After(10 * time.Second)
for i := 0; i < numSharders; i++ {
Expand Down

0 comments on commit 9568cf1

Please sign in to comment.