File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
1111
1212 "github.com/spf13/viper"
1313
14- "github.com/skycoin/skycoin/src/daemon "
14+ "github.com/skycoin/skycoin/src/visor "
1515 "github.com/skycoin/skycoin/src/wallet"
1616 "github.com/skycoin/teller/src/util/mathutil"
1717)
@@ -235,8 +235,8 @@ func (c Config) Validate() error {
235235 oops ("sky_exchanger.max_decimals can't be negative" )
236236 }
237237
238- if c .SkyExchanger .MaxDecimals > daemon .MaxDropletPrecision {
239- oops (fmt .Sprintf ("sky_exchanger.max_decimals is larger than daemon .MaxDropletPrecision=%d" , daemon .MaxDropletPrecision ))
238+ if uint64 ( c .SkyExchanger .MaxDecimals ) > visor .MaxDropletPrecision {
239+ oops (fmt .Sprintf ("sky_exchanger.max_decimals is larger than visor .MaxDropletPrecision=%d" , visor .MaxDropletPrecision ))
240240 }
241241
242242 if err := c .Web .Validate (); err != nil {
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import (
1212 "github.com/sirupsen/logrus"
1313
1414 "github.com/skycoin/skycoin/src/coin"
15- "github.com/skycoin/skycoin/src/daemon"
1615 "github.com/skycoin/skycoin/src/util/droplet"
16+ "github.com/skycoin/skycoin/src/visor"
1717
1818 "github.com/skycoin/teller/src/scanner"
1919 "github.com/skycoin/teller/src/sender"
@@ -80,8 +80,8 @@ func (c Config) Validate() error {
8080 return errors .New ("MaxDecimals can't be negative" )
8181 }
8282
83- if c .MaxDecimals > daemon .MaxDropletPrecision {
84- return fmt .Errorf ("MaxDecimals is larger than daemon .MaxDropletPrecision=%d" , daemon .MaxDropletPrecision )
83+ if uint64 ( c .MaxDecimals ) > visor .MaxDropletPrecision {
84+ return fmt .Errorf ("MaxDecimals is larger than visor .MaxDropletPrecision=%d" , visor .MaxDropletPrecision )
8585 }
8686
8787 return nil
You can’t perform that action at this time.
0 commit comments