Skip to content

Commit

Permalink
chore: remove genesishash as it is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
HashMapsData2Value committed Oct 24, 2024
1 parent 0c5311c commit d8a5f43
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ type StatusModel struct {
State string
Version string
Network string
GenesisHash []byte
Voting bool
NeedsUpdate bool
LastRound uint64 // Last recorded round
Expand All @@ -36,7 +35,6 @@ func (m *StatusModel) Fetch(ctx context.Context, client *api.ClientWithResponses
}
m.Network = v.JSON200.GenesisId
m.Version = fmt.Sprintf("v%d.%d.%d-%s", v.JSON200.Build.Major, v.JSON200.Build.Minor, v.JSON200.Build.BuildNumber, v.JSON200.Build.Channel)
m.GenesisHash = v.JSON200.GenesisHashB64
}

s, err := client.GetStatusWithResponse(ctx)
Expand Down

0 comments on commit d8a5f43

Please sign in to comment.