Skip to content

Commit

Permalink
(NOBIDS) Make the "mainnet" check easier
Browse files Browse the repository at this point in the history
  • Loading branch information
recy21 committed Dec 5, 2023
1 parent 679b428 commit e7385c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,6 @@ func LatestSlotVizMetrics() []*types.SlotVizEpochs {
// LatestState returns statistics about the current eth2 state
func LatestState() *types.LatestState {
data := &types.LatestState{}
data.ChainID = utils.Config.Chain.Id
data.CurrentEpoch = LatestEpoch()
data.CurrentSlot = LatestSlot()
data.CurrentFinalizedEpoch = LatestFinalizedEpoch()
Expand Down
4 changes: 2 additions & 2 deletions static/js/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ function updateBanner() {
slotHandle.setAttribute("href", "/slot/" + data.currentSlot)
}

if (data && data.chainID === 1) {
var ethPriceHandle = document.getElementById("banner-eth-price-data")
var ethPriceHandle = document.getElementById("banner-eth-price-data")
if (ethPriceHandle) {
try {
let userCurrency = getCookie("currency")
if (!userCurrency) userCurrency = data.rates.tickerCurrency
Expand Down
1 change: 0 additions & 1 deletion types/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ type Meta struct {

// LatestState is a struct to hold data for the banner
type LatestState struct {
ChainID uint64 `json:"chainID"`
LastProposedSlot uint64 `json:"lastProposedSlot"`
CurrentSlot uint64 `json:"currentSlot"`
CurrentEpoch uint64 `json:"currentEpoch"`
Expand Down

0 comments on commit e7385c0

Please sign in to comment.