Skip to content

Commit

Permalink
auto goimport fix
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Mar 13, 2019
1 parent 28f1ee9 commit 383c1f8
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/cosmos/cosmos-sdk/x/mock"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/abci/client"
abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/types"
abci "github.com/tendermint/tendermint/abci/types"
cfg "github.com/tendermint/tendermint/config"
Expand Down
2 changes: 1 addition & 1 deletion app/pub/publisher_kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/Shopify/sarama"
"github.com/deathowl/go-metrics-prometheus"
prometheusmetrics "github.com/deathowl/go-metrics-prometheus"
"github.com/eapache/go-resiliency/breaker"
"github.com/linkedin/goavro"
"github.com/prometheus/client_golang/prometheus"
Expand Down
2 changes: 1 addition & 1 deletion cmd/bnbchaind/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ enabled, and the genesis file will not be generated.
func prepareCreateValidatorTx(cdc *codec.Codec, chainId, name, memo string,
valOperAddr sdk.ValAddress, valPubKey crypto.PubKey) json.RawMessage {
msg := stake.MsgCreateValidatorProposal{
MsgCreateValidator:stake.NewMsgCreateValidator(
MsgCreateValidator: stake.NewMsgCreateValidator(
valOperAddr,
valPubKey,
app.DefaultSelfDelegationToken,
Expand Down
3 changes: 2 additions & 1 deletion cmd/dexperf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"encoding/json"
"flag"
"fmt"
"go.uber.org/ratelimit"
"io/ioutil"
"math/rand"
"os"
Expand All @@ -21,6 +20,8 @@ import (
"sync"
"time"

"go.uber.org/ratelimit"

"github.com/cosmos/cosmos-sdk/client/context"
"github.com/cosmos/cosmos-sdk/client/keys"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
2 changes: 1 addition & 1 deletion common/tx/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/hashicorp/golang-lru"
lru "github.com/hashicorp/golang-lru"
"github.com/pkg/errors"
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/tmhash"
Expand Down
2 changes: 1 addition & 1 deletion networks/tools/reset/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/tendermint/iavl"
"github.com/tendermint/tendermint/blockchain"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/crypto/encoding/amino"
cryptoAmino "github.com/tendermint/tendermint/crypto/encoding/amino"
cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tendermint/libs/db"
Expand Down
8 changes: 4 additions & 4 deletions plugins/api/handlers/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ func TestAccount_ToBalances(t *testing.T) {
privKey, addr := testutils.PrivAndAddr()
acc := &types.AppAccount{
BaseAccount: auth.BaseAccount{
Address: addr,
Coins: nil,
PubKey: privKey.PubKey(),
Address: addr,
Coins: nil,
PubKey: privKey.PubKey(),
AccountNumber: 1,
Sequence :1,
Sequence: 1,
},
}
balances := toTokenBalances(acc)
Expand Down
4 changes: 2 additions & 2 deletions plugins/api/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ func (s *server) bindRoutes() *server {

// legacy plugin routes
// TODO: make these more like the above for simplicity.

// keys rest routes disabled for security. while the nodes with keys (validators) run in a secure ringfenced environment,
// disabling this is a precaution to protect third-party validators that might not have protected their networks adequately.
//keys.RegisterRoutes(r, true)

rpc.RegisterRoutes(s.ctx, r)
tx.RegisterRoutes(s.ctx, r, s.cdc)
auth.RegisterRoutes(s.ctx, r, s.cdc, s.accStoreName)
Expand Down
3 changes: 2 additions & 1 deletion plugins/param/client/cli/fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package cli
import (
"encoding/json"
"fmt"
"io/ioutil"

"github.com/spf13/cobra"
"github.com/spf13/viper"
"io/ioutil"

"github.com/cosmos/cosmos-sdk/client/context"
"github.com/cosmos/cosmos-sdk/client/utils"
Expand Down
2 changes: 1 addition & 1 deletion plugins/tokens/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var TransferFeeCalculatorGen = fees.FeeCalculatorGenerator(func(params param.Fee
}
num := utils.MaxInt(inputNum, outputNum)
if num >= transferFeeParam.LowerLimitAsMulti {
if num > types.TokenMaxTotalSupply / transferFeeParam.MultiTransferFee {
if num > types.TokenMaxTotalSupply/transferFeeParam.MultiTransferFee {
totalFee = types.TokenMaxTotalSupply
} else {
totalFee = transferFeeParam.MultiTransferFee * num
Expand Down
Empty file added scripts/get_tools.sh
Empty file.
2 changes: 1 addition & 1 deletion wire/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto/encoding/amino"
cryptoAmino "github.com/tendermint/tendermint/crypto/encoding/amino"
)

// amino codec to marshal/unmarshal
Expand Down

0 comments on commit 383c1f8

Please sign in to comment.