From 8d9efc75d311be0ce819c5b74abacce242947ba4 Mon Sep 17 00:00:00 2001 From: wjrjerome Date: Thu, 5 Dec 2024 20:43:45 +1100 Subject: [PATCH] fix: remove btc activation height as it could be 0 --- internal/clients/bbnclient/bbnclient.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/clients/bbnclient/bbnclient.go b/internal/clients/bbnclient/bbnclient.go index 998660b..d089485 100644 --- a/internal/clients/bbnclient/bbnclient.go +++ b/internal/clients/bbnclient/bbnclient.go @@ -94,10 +94,6 @@ func (c *BBNClient) GetAllStakingParams(ctx context.Context) (map[uint32]*Stakin if err := params.Params.Validate(); err != nil { return nil, fmt.Errorf("failed to validate staking params for version %d: %w", version, err) } - // BBN is missing the btcActivationHeight validation in the staking params - if params.Params.BtcActivationHeight == 0 { - return nil, fmt.Errorf("btc activation height is not set") - } allParams[version] = FromBbnStakingParams(params.Params) version++