Skip to content

Commit

Permalink
Merge pull request #172 from gz-c/update-skycoin
Browse files Browse the repository at this point in the history
Update skycoin
  • Loading branch information
gz-c authored Dec 14, 2017
2 parents 41d9cc8 + 48d3c95 commit a050896
Show file tree
Hide file tree
Showing 114 changed files with 7,713 additions and 3,310 deletions.
14 changes: 10 additions & 4 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

[[constraint]]
name = "github.com/skycoin/skycoin"
version = "v0.20.4"
version = "v0.21.0"

[[constraint]]
name = "github.com/stretchr/testify"
Expand Down
6 changes: 3 additions & 3 deletions src/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/spf13/viper"

"github.com/skycoin/skycoin/src/daemon"
"github.com/skycoin/skycoin/src/visor"
"github.com/skycoin/skycoin/src/wallet"
"github.com/skycoin/teller/src/util/mathutil"
)
Expand Down Expand Up @@ -235,8 +235,8 @@ func (c Config) Validate() error {
oops("sky_exchanger.max_decimals can't be negative")
}

if c.SkyExchanger.MaxDecimals > daemon.MaxDropletPrecision {
oops(fmt.Sprintf("sky_exchanger.max_decimals is larger than daemon.MaxDropletPrecision=%d", daemon.MaxDropletPrecision))
if uint64(c.SkyExchanger.MaxDecimals) > visor.MaxDropletPrecision {
oops(fmt.Sprintf("sky_exchanger.max_decimals is larger than visor.MaxDropletPrecision=%d", visor.MaxDropletPrecision))
}

if err := c.Web.Validate(); err != nil {
Expand Down
6 changes: 3 additions & 3 deletions src/exchange/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/sirupsen/logrus"

"github.com/skycoin/skycoin/src/coin"
"github.com/skycoin/skycoin/src/daemon"
"github.com/skycoin/skycoin/src/util/droplet"
"github.com/skycoin/skycoin/src/visor"

"github.com/skycoin/teller/src/scanner"
"github.com/skycoin/teller/src/sender"
Expand Down Expand Up @@ -80,8 +80,8 @@ func (c Config) Validate() error {
return errors.New("MaxDecimals can't be negative")
}

if c.MaxDecimals > daemon.MaxDropletPrecision {
return fmt.Errorf("MaxDecimals is larger than daemon.MaxDropletPrecision=%d", daemon.MaxDropletPrecision)
if uint64(c.MaxDecimals) > visor.MaxDropletPrecision {
return fmt.Errorf("MaxDecimals is larger than visor.MaxDropletPrecision=%d", visor.MaxDropletPrecision)
}

return nil
Expand Down
22 changes: 22 additions & 0 deletions vendor/github.com/cenkalti/backoff/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions vendor/github.com/cenkalti/backoff/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions vendor/github.com/cenkalti/backoff/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions vendor/github.com/cenkalti/backoff/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions vendor/github.com/cenkalti/backoff/backoff.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions vendor/github.com/cenkalti/backoff/backoff_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions vendor/github.com/cenkalti/backoff/context.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions vendor/github.com/cenkalti/backoff/context_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a050896

Please sign in to comment.