Skip to content

Commit

Permalink
Merge branch 'dp' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpiotzh committed Nov 7, 2023
2 parents 3c5f8c2 + 3b31da7 commit 5ebe4e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion timer/balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 5ebe4e0

Please sign in to comment.