Skip to content

Commit

Permalink
fix: remove btc activation height as it could be 0 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab authored Dec 5, 2024
1 parent 65451d9 commit 7da2561
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/clients/bbnclient/bbnclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++
Expand Down

0 comments on commit 7da2561

Please sign in to comment.