Skip to content

Commit

Permalink
add comment to the eots pk
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab committed Aug 12, 2024
1 parent fb3fdbf commit 9fe392b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/types/finality_providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type FinalityProviderFromFile struct {
Description FinalityProviderDescription `json:"description"`
Commission string `json:"commission"`
BtcPk string `json:"btc_pk"`
EotsPk string `json:"eots_pk"`
EotsPk string `json:"eots_pk"` // eots is the default field for the pk
}

type FinalityProviders struct {
Expand All @@ -45,9 +45,9 @@ func NewFinalityProviders(filePath string) ([]FinalityProviderDetails, error) {
// Convert FinalityProviderFromFile to FinalityProviderDetails
var finalityProviderDetails []FinalityProviderDetails
for _, fp := range finalityProviders.FinalityProviders {
btcPk := fp.BtcPk
if fp.EotsPk != "" {
btcPk = fp.EotsPk
btcPk := fp.EotsPk
if btcPk == "" {
btcPk = fp.BtcPk
}

finalityProviderDetails = append(finalityProviderDetails, FinalityProviderDetails{
Expand Down

0 comments on commit 9fe392b

Please sign in to comment.