diff --git a/config/config.go b/config/config.go index 9cd0e5b..197efb4 100644 --- a/config/config.go +++ b/config/config.go @@ -75,10 +75,11 @@ type CfgServer struct { } `json:"db" yaml:"db"` Chain struct { Ckb struct { - Refund bool `json:"refund" yaml:"refund"` - Switch bool `json:"switch" yaml:"switch"` - Node string `json:"node" yaml:"node"` - AddrMap map[string]string `json:"addr_map" yaml:"addr_map"` + Refund bool `json:"refund" yaml:"refund"` + Switch bool `json:"switch" yaml:"switch"` + Node string `json:"node" yaml:"node"` + AddrMap map[string]string `json:"addr_map" yaml:"addr_map"` + BalanceCheckMap map[string]string `json:"balance_check_map" yaml:"balance_check_map"` } `json:"ckb" yaml:"ckb"` Eth EvmNode `json:"eth" yaml:"eth"` Tron EvmNode `json:"tron" yaml:"tron"` diff --git a/timer/balance.go b/timer/balance.go index 19c9a5c..10dfa9d 100644 --- a/timer/balance.go +++ b/timer/balance.go @@ -32,7 +32,7 @@ func (t *ToolTimer) RunCkbBalance() { } func (t *ToolTimer) ckbBalance() error { - for addr, _ := range config.Cfg.Chain.Ckb.AddrMap { + for addr, _ := range config.Cfg.Chain.Ckb.BalanceCheckMap { parseAddr, err := address.Parse(addr) if err != nil { return fmt.Errorf("address.Parse err: %s", err.Error())