Skip to content

Commit

Permalink
Merge branch 'develop' into update-binary-names-upgrade-path-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis authored Oct 31, 2023
2 parents 49985ca + 9c97563 commit 92fc1c7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions zetaclient/zetacore_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ func NewCoreObserver(
return &co
}

func (co *CoreObserver) Config() *config.Config {
return co.cfg
}

func (co *CoreObserver) GetPromCounter(name string) (prom.Counter, error) {
cnt, found := metrics.Counters[name]
if !found {
Expand Down Expand Up @@ -129,12 +133,12 @@ func (co *CoreObserver) startSendScheduler() {
}
//logger.Info().Dur("elapsed", time.Since(tStart)).Msgf("GetAllPendingCctx %d", len(sendList))

supportedChains := GetSupportedChains()
supportedChains := co.Config().GetEnabledChains()
for _, c := range supportedChains {
if c == nil || c.ChainId == common.ZetaChain().ChainId {
if c.ChainId == common.ZetaChain().ChainId {
continue
}
signer := co.signerMap[*c]
signer := co.signerMap[c]

cctxList, err := co.bridge.GetAllPendingCctx(c.ChainId)
if err != nil {
Expand All @@ -151,7 +155,7 @@ func (co *CoreObserver) startSendScheduler() {
co.logger.ZetaChainWatcher.Error().Err(err).Msgf("GetTargetChain fail, Chain ID: %s", c.ChainName)
continue
}
res, err := co.bridge.GetAllOutTxTrackerByChain(*c, Ascending)
res, err := co.bridge.GetAllOutTxTrackerByChain(c, Ascending)
if err != nil {
co.logger.ZetaChainWatcher.Warn().Err(err).Msgf("failed to GetAllOutTxTrackerByChain for chain %s", c.ChainName.String())
continue
Expand Down

0 comments on commit 92fc1c7

Please sign in to comment.