Skip to content

Commit

Permalink
(BIDS-2369) fix GetTotalAmountWithdrawn()
Browse files Browse the repository at this point in the history
  • Loading branch information
LuccaBitfly committed Oct 10, 2023
1 parent c59ff80 commit f339a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -2384,7 +2384,7 @@ func GetTotalAmountWithdrawn() (sum uint64, count uint64, err error) {
_, lastEpochOfDay := utils.GetFirstAndLastEpochForDay(lastExportedDay)
cutoffSlot := (lastEpochOfDay * utils.Config.Chain.Config.SlotsPerEpoch) + 1

Check failure on line 2385 in db/db.go

View workflow job for this annotation

GitHub Actions / Build

utils.Config.Chain.Config undefined (type struct{Name string "yaml:\"name\" envconfig:\"CHAIN_NAME\""; Id uint64 "yaml:\"id\" envconfig:\"CHAIN_ID\""; GenesisTimestamp uint64 "yaml:\"genesisTimestamp\" envconfig:\"CHAIN_GENESIS_TIMESTAMP\""; GenesisValidatorsRoot string "yaml:\"genesisValidatorsRoot\" envconfig:\"CHAIN_GENESIS_VALIDATORS_ROOT\""; DomainBLSToExecutionChange string "yaml:\"domainBLSToExecutionChange\" envconfig:\"CHAIN_DOMAIN_BLS_TO_EXECUTION_CHANGE\""; DomainVoluntaryExit string "yaml:\"domainVoluntaryExit\" envconfig:\"CHAIN_DOMAIN_VOLUNTARY_EXIT\""; ClConfigPath string "yaml:\"clConfigPath\" envconfig:\"CHAIN_CL_CONFIG_PATH\""; ElConfigPath string "yaml:\"elConfigPath\" envconfig:\"CHAIN_EL_CONFIG_PATH\""; ClConfig "eth2-exporter/types".ClChainConfig; ElConfig *"github.com/ethereum/go-ethereum/params".ChainConfig} has no field or method Config)

Check failure on line 2385 in db/db.go

View workflow job for this annotation

GitHub Actions / Run CI (ubuntu-latest, 1.20.x)

utils.Config.Chain.Config undefined (type struct{Name string "yaml:\"name\" envconfig:\"CHAIN_NAME\""; Id uint64 "yaml:\"id\" envconfig:\"CHAIN_ID\""; GenesisTimestamp uint64 "yaml:\"genesisTimestamp\" envconfig:\"CHAIN_GENESIS_TIMESTAMP\""; GenesisValidatorsRoot string "yaml:\"genesisValidatorsRoot\" envconfig:\"CHAIN_GENESIS_VALIDATORS_ROOT\""; DomainBLSToExecutionChange string "yaml:\"domainBLSToExecutionChange\" envconfig:\"CHAIN_DOMAIN_BLS_TO_EXECUTION_CHANGE\""; DomainVoluntaryExit string "yaml:\"domainVoluntaryExit\" envconfig:\"CHAIN_DOMAIN_VOLUNTARY_EXIT\""; ClConfigPath string "yaml:\"clConfigPath\" envconfig:\"CHAIN_CL_CONFIG_PATH\""; ElConfigPath string "yaml:\"elConfigPath\" envconfig:\"CHAIN_EL_CONFIG_PATH\""; ClConfig "eth2-exporter/types".ClChainConfig; ElConfig *"github.com/ethereum/go-ethereum/params".ChainConfig} has no field or method Config)

err = ReaderDb.Get(&count, `
err = ReaderDb.Get(&res, `
WITH today AS (
SELECT
COALESCE(SUM(w.amount), 0) as sum,
Expand Down

0 comments on commit f339a4a

Please sign in to comment.