From 743fe5c097c84ece421a381940ec3625f8f2914b Mon Sep 17 00:00:00 2001 From: Hitenjain14 Date: Fri, 2 Feb 2024 23:53:46 +0530 Subject: [PATCH] fix naming --- core/node/node.go | 4 ++-- zcncore/transaction.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/node/node.go b/core/node/node.go index 08894835b..9271abb02 100644 --- a/core/node/node.go +++ b/core/node/node.go @@ -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") @@ -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) diff --git a/zcncore/transaction.go b/zcncore/transaction.go index 838000291..703b8dac4 100644 --- a/zcncore/transaction.go +++ b/zcncore/transaction.go @@ -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) {