Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Feb 2, 2024
1 parent e09e817 commit 743fe5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (h *NodeHolder) GetRoundFromSharders() (int64, error) {
return round, nil
}

func (h *NodeHolder) GetHardforkRound(hardfork string) (int64, error) {
func (h *NodeHolder) GetHardForkRound(hardFork string) (int64, error) {
sharders := h.Healthy()
if len(sharders) == 0 {
return 0, stdErrors.New("get round failed. no sharders")
Expand All @@ -376,7 +376,7 @@ func (h *NodeHolder) GetHardforkRound(hardfork string) (int64, error) {
numSharders = 5
}

h.QueryFromSharders(numSharders, fmt.Sprintf("%s%s", GET_HARDFORK_ROUND, hardfork), result)
h.QueryFromSharders(numSharders, fmt.Sprintf("%s%s", GET_HARDFORK_ROUND, hardFork), result)

const consensusThresh = float32(25.0)

Expand Down
4 changes: 2 additions & 2 deletions zcncore/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -1239,8 +1239,8 @@ func GetRoundFromSharders() (int64, error) {
return Sharders.GetRoundFromSharders()
}

func GetHardforkRound(hardfork string) (int64, error) {
return Sharders.GetHardforkRound(hardfork)
func GetHardForkRound(hardFork string) (int64, error) {
return Sharders.GetHardForkRound(hardFork)
}

func GetMagicBlockByNumber(ctx context.Context, numSharders int, number int64) (m *block.MagicBlock, err error) {
Expand Down

0 comments on commit 743fe5c

Please sign in to comment.