Browse Source

format: add format cmd & goimport repo (#4586)

* format: add format cmd & goimport repo

- replaced format command
- added goimports to format command
- ran goimports

Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>

* fix outliers & undo proto file changes
pull/4598/head
Marko 5 years ago
committed by GitHub
parent
commit
044f1bf288
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
111 changed files with 152 additions and 46 deletions
  1. +4
    -3
      Makefile
  2. +2
    -1
      abci/example/kvstore/kvstore.go
  3. +2
    -1
      abci/example/kvstore/persistent_kvstore.go
  4. +1
    -0
      blockchain/v0/codec.go
  5. +3
    -3
      blockchain/v0/reactor_test.go
  6. +1
    -0
      blockchain/v1/codec.go
  7. +1
    -0
      blockchain/v1/reactor.go
  8. +1
    -0
      blockchain/v1/reactor_fsm_test.go
  9. +2
    -1
      blockchain/v1/reactor_test.go
  10. +1
    -0
      blockchain/v2/codec.go
  11. +1
    -0
      blockchain/v2/processor_test.go
  12. +1
    -0
      blockchain/v2/reactor.go
  13. +2
    -1
      blockchain/v2/reactor_test.go
  14. +1
    -0
      blockchain/v2/routine.go
  15. +1
    -0
      blockchain/v2/scheduler_test.go
  16. +1
    -0
      cmd/tendermint/commands/codec.go
  17. +1
    -0
      cmd/tendermint/commands/debug/dump.go
  18. +1
    -0
      cmd/tendermint/commands/debug/util.go
  19. +1
    -0
      consensus/byzantine_test.go
  20. +1
    -0
      consensus/codec.go
  21. +2
    -1
      consensus/common_test.go
  22. +2
    -1
      consensus/mempool_test.go
  23. +1
    -0
      consensus/reactor.go
  24. +2
    -1
      consensus/reactor_test.go
  25. +2
    -1
      consensus/replay_test.go
  26. +1
    -0
      consensus/types/codec.go
  27. +1
    -0
      consensus/types/round_state_test.go
  28. +1
    -0
      consensus/wal.go
  29. +2
    -1
      consensus/wal_generator.go
  30. +1
    -0
      crypto/ed25519/ed25519_test.go
  31. +1
    -0
      crypto/encoding/amino/amino.go
  32. +1
    -0
      crypto/encoding/amino/encode_test.go
  33. +1
    -0
      crypto/merkle/simple_map.go
  34. +1
    -0
      crypto/merkle/simple_proof.go
  35. +1
    -0
      crypto/multisig/bitarray/compact_bit_array_test.go
  36. +1
    -0
      crypto/multisig/codec.go
  37. +1
    -0
      crypto/secp256k1/secp256k1.go
  38. +2
    -1
      crypto/secp256k1/secp256k1_cgo_test.go
  39. +1
    -0
      crypto/sr25519/codec.go
  40. +1
    -0
      crypto/tmhash/hash_test.go
  41. +1
    -0
      evidence/codec.go
  42. +2
    -2
      evidence/pool.go
  43. +2
    -1
      evidence/pool_test.go
  44. +2
    -1
      evidence/reactor_test.go
  45. +2
    -1
      evidence/store.go
  46. +2
    -1
      evidence/store_test.go
  47. +1
    -0
      libs/clist/clist_test.go
  48. +0
    -1
      libs/kv/kvpair.go
  49. +1
    -0
      libs/log/tmfmt_logger_test.go
  50. +1
    -0
      libs/log/tracing_logger_test.go
  51. +1
    -0
      libs/pubsub/pubsub.go
  52. +2
    -1
      lite/dbprovider.go
  53. +2
    -1
      lite/dynamic_verifier_test.go
  54. +2
    -1
      lite/provider_test.go
  55. +2
    -1
      lite/proxy/verifier.go
  56. +2
    -1
      lite2/client_benchmark_test.go
  57. +1
    -0
      node/codec.go
  58. +2
    -1
      node/node.go
  59. +2
    -1
      node/node_test.go
  60. +1
    -0
      p2p/codec.go
  61. +1
    -0
      p2p/conn/codec.go
  62. +1
    -0
      p2p/conn/connection.go
  63. +1
    -0
      p2p/conn/connection_test.go
  64. +1
    -0
      p2p/conn/secret_connection_test.go
  65. +1
    -0
      p2p/key_test.go
  66. +1
    -0
      p2p/node_info_test.go
  67. +1
    -0
      p2p/pex/addrbook_test.go
  68. +1
    -0
      p2p/pex/pex_reactor.go
  69. +2
    -1
      p2p/trust/store.go
  70. +2
    -1
      p2p/trust/store_test.go
  71. +1
    -0
      privval/codec.go
  72. +1
    -0
      privval/file_test.go
  73. +1
    -0
      privval/messages.go
  74. +1
    -0
      privval/socket_dialers.go
  75. +1
    -0
      rpc/client/codec.go
  76. +1
    -0
      rpc/client/helpers.go
  77. +1
    -0
      rpc/client/helpers_test.go
  78. +2
    -1
      rpc/core/blocks_test.go
  79. +2
    -1
      rpc/core/pipe.go
  80. +1
    -0
      rpc/core/types/codec.go
  81. +1
    -0
      rpc/lib/client/integration_test.go
  82. +1
    -0
      rpc/lib/client/ws_client.go
  83. +1
    -0
      rpc/lib/client/ws_client_test.go
  84. +1
    -0
      rpc/lib/rpc_test.go
  85. +1
    -0
      rpc/lib/server/http_json_handler_test.go
  86. +1
    -0
      rpc/lib/server/parse_test.go
  87. +1
    -0
      scripts/json2wal/main.go
  88. +1
    -0
      scripts/privValUpgrade_test.go
  89. +1
    -0
      scripts/wal2json/main.go
  90. +1
    -0
      state/codec.go
  91. +2
    -1
      state/execution.go
  92. +1
    -0
      state/execution_test.go
  93. +2
    -1
      state/export_test.go
  94. +4
    -3
      state/state_test.go
  95. +2
    -1
      state/store.go
  96. +2
    -1
      state/store_test.go
  97. +2
    -1
      state/tx_filter_test.go
  98. +2
    -1
      state/txindex/indexer_service_test.go
  99. +2
    -1
      state/txindex/kv/kv_bench_test.go
  100. +2
    -1
      state/validation.go

+ 4
- 3
Makefile View File

@ -134,9 +134,10 @@ clean_certs:
### Formatting, linting, and vetting ### ### Formatting, linting, and vetting ###
############################################################################### ###############################################################################
fmt:
@go fmt ./...
.PHONY: fmt
format:
find . -name '*.go' -type f -not -path "*.git*" -not -name '*.pb.go' -not -name '*pb_test.go' | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "*.git*" -not -name '*.pb.go' -not -name '*pb_test.go' | xargs goimports -w -local github.com/tendermint/tendermint
.PHONY: format
lint: lint:
@echo "--> Running linter" @echo "--> Running linter"


+ 2
- 1
abci/example/kvstore/kvstore.go View File

@ -6,11 +6,12 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/abci/example/code" "github.com/tendermint/tendermint/abci/example/code"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/kv" "github.com/tendermint/tendermint/libs/kv"
"github.com/tendermint/tendermint/version" "github.com/tendermint/tendermint/version"
dbm "github.com/tendermint/tm-db"
) )
var ( var (


+ 2
- 1
abci/example/kvstore/persistent_kvstore.go View File

@ -7,12 +7,13 @@ import (
"strconv" "strconv"
"strings" "strings"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/abci/example/code" "github.com/tendermint/tendermint/abci/example/code"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
tmtypes "github.com/tendermint/tendermint/types" tmtypes "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
const ( const (


+ 1
- 0
blockchain/v0/codec.go View File

@ -2,6 +2,7 @@ package v0
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 3
- 3
blockchain/v0/reactor_test.go View File

@ -7,10 +7,10 @@ import (
"time" "time"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tendermint/tendermint/store"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
@ -18,9 +18,9 @@ import (
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/proxy"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time" tmtime "github.com/tendermint/tendermint/types/time"
dbm "github.com/tendermint/tm-db"
) )
var config *cfg.Config var config *cfg.Config


+ 1
- 0
blockchain/v1/codec.go View File

@ -2,6 +2,7 @@ package v1
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 0
blockchain/v1/reactor.go View File

@ -7,6 +7,7 @@ import (
"time" "time"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/behaviour" "github.com/tendermint/tendermint/behaviour"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"


+ 1
- 0
blockchain/v1/reactor_fsm_test.go View File

@ -6,6 +6,7 @@ import (
"time" "time"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
tmmath "github.com/tendermint/tendermint/libs/math" tmmath "github.com/tendermint/tendermint/libs/math"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"


+ 2
- 1
blockchain/v1/reactor_test.go View File

@ -12,6 +12,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
@ -22,7 +24,6 @@ import (
"github.com/tendermint/tendermint/store" "github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time" tmtime "github.com/tendermint/tendermint/types/time"
dbm "github.com/tendermint/tm-db"
) )
var config *cfg.Config var config *cfg.Config


+ 1
- 0
blockchain/v2/codec.go View File

@ -2,6 +2,7 @@ package v2
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 0
blockchain/v2/processor_test.go View File

@ -4,6 +4,7 @@ import (
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
tmState "github.com/tendermint/tendermint/state" tmState "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"


+ 1
- 0
blockchain/v2/reactor.go View File

@ -7,6 +7,7 @@ import (
"time" "time"
"github.com/tendermint/go-amino" "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/behaviour" "github.com/tendermint/tendermint/behaviour"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"


+ 2
- 1
blockchain/v2/reactor_test.go View File

@ -10,6 +10,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/behaviour" "github.com/tendermint/tendermint/behaviour"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
@ -23,7 +25,6 @@ import (
"github.com/tendermint/tendermint/store" "github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time" tmtime "github.com/tendermint/tendermint/types/time"
dbm "github.com/tendermint/tm-db"
) )
type mockPeer struct { type mockPeer struct {


+ 1
- 0
blockchain/v2/routine.go View File

@ -5,6 +5,7 @@ import (
"sync/atomic" "sync/atomic"
"github.com/Workiva/go-datastructures/queue" "github.com/Workiva/go-datastructures/queue"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
) )


+ 1
- 0
blockchain/v2/scheduler_test.go View File

@ -8,6 +8,7 @@ import (
"time" "time"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 0
cmd/tendermint/commands/codec.go View File

@ -2,6 +2,7 @@ package commands
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino" cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino"
) )


+ 1
- 0
cmd/tendermint/commands/debug/dump.go View File

@ -10,6 +10,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/libs/cli" "github.com/tendermint/tendermint/libs/cli"
rpcclient "github.com/tendermint/tendermint/rpc/client" rpcclient "github.com/tendermint/tendermint/rpc/client"


+ 1
- 0
cmd/tendermint/commands/debug/util.go View File

@ -9,6 +9,7 @@ import (
"path/filepath" "path/filepath"
"github.com/pkg/errors" "github.com/pkg/errors"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
rpcclient "github.com/tendermint/tendermint/rpc/client" rpcclient "github.com/tendermint/tendermint/rpc/client"
) )


+ 1
- 0
consensus/byzantine_test.go View File

@ -8,6 +8,7 @@ import (
"time" "time"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/service" "github.com/tendermint/tendermint/libs/service"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"


+ 1
- 0
consensus/codec.go View File

@ -2,6 +2,7 @@ package consensus
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 2
- 1
consensus/common_test.go View File

@ -18,6 +18,8 @@ import (
"path" "path"
dbm "github.com/tendermint/tm-db"
abcicli "github.com/tendermint/tendermint/abci/client" abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/example/counter" "github.com/tendermint/tendermint/abci/example/counter"
"github.com/tendermint/tendermint/abci/example/kvstore" "github.com/tendermint/tendermint/abci/example/kvstore"
@ -35,7 +37,6 @@ import (
"github.com/tendermint/tendermint/store" "github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time" tmtime "github.com/tendermint/tendermint/types/time"
dbm "github.com/tendermint/tm-db"
) )
const ( const (


+ 2
- 1
consensus/mempool_test.go View File

@ -9,12 +9,13 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/abci/example/code" "github.com/tendermint/tendermint/abci/example/code"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
mempl "github.com/tendermint/tendermint/mempool" mempl "github.com/tendermint/tendermint/mempool"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
// for testing // for testing


+ 1
- 0
consensus/reactor.go View File

@ -9,6 +9,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cstypes "github.com/tendermint/tendermint/consensus/types" cstypes "github.com/tendermint/tendermint/consensus/types"
"github.com/tendermint/tendermint/libs/bits" "github.com/tendermint/tendermint/libs/bits"
tmevents "github.com/tendermint/tendermint/libs/events" tmevents "github.com/tendermint/tendermint/libs/events"


+ 2
- 1
consensus/reactor_test.go View File

@ -14,6 +14,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
abcicli "github.com/tendermint/tendermint/abci/client" abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/example/kvstore" "github.com/tendermint/tendermint/abci/example/kvstore"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
@ -29,7 +31,6 @@ import (
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/store" "github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
//---------------------------------------------- //----------------------------------------------


+ 2
- 1
consensus/replay_test.go View File

@ -17,6 +17,8 @@ import (
"sort" "sort"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/abci/example/kvstore" "github.com/tendermint/tendermint/abci/example/kvstore"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
@ -30,7 +32,6 @@ import (
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
"github.com/tendermint/tendermint/version" "github.com/tendermint/tendermint/version"
dbm "github.com/tendermint/tm-db"
) )
func TestMain(m *testing.M) { func TestMain(m *testing.M) {


+ 1
- 0
consensus/types/codec.go View File

@ -2,6 +2,7 @@ package types
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 0
consensus/types/round_state_test.go View File

@ -4,6 +4,7 @@ import (
"testing" "testing"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/crypto/tmhash"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"


+ 1
- 0
consensus/wal.go View File

@ -11,6 +11,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
auto "github.com/tendermint/tendermint/libs/autofile" auto "github.com/tendermint/tendermint/libs/autofile"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
tmos "github.com/tendermint/tendermint/libs/os" tmos "github.com/tendermint/tendermint/libs/os"


+ 2
- 1
consensus/wal_generator.go View File

@ -11,6 +11,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
db "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/abci/example/kvstore" "github.com/tendermint/tendermint/abci/example/kvstore"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
@ -21,7 +23,6 @@ import (
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/store" "github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
db "github.com/tendermint/tm-db"
) )
// WALGenerateNBlocks generates a consensus WAL. It does this by spinning up a // WALGenerateNBlocks generates a consensus WAL. It does this by spinning up a


+ 1
- 0
crypto/ed25519/ed25519_test.go View File

@ -5,6 +5,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
) )


+ 1
- 0
crypto/encoding/amino/amino.go View File

@ -4,6 +4,7 @@ import (
"reflect" "reflect"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/crypto/multisig" "github.com/tendermint/tendermint/crypto/multisig"


+ 1
- 0
crypto/encoding/amino/encode_test.go View File

@ -9,6 +9,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/crypto/multisig" "github.com/tendermint/tendermint/crypto/multisig"


+ 1
- 0
crypto/merkle/simple_map.go View File

@ -4,6 +4,7 @@ import (
"bytes" "bytes"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/crypto/tmhash"
"github.com/tendermint/tendermint/libs/kv" "github.com/tendermint/tendermint/libs/kv"
) )


+ 1
- 0
crypto/merkle/simple_proof.go View File

@ -5,6 +5,7 @@ import (
"fmt" "fmt"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/crypto/tmhash"
) )


+ 1
- 0
crypto/multisig/bitarray/compact_bit_array_test.go View File

@ -7,6 +7,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"
) )


+ 1
- 0
crypto/multisig/codec.go View File

@ -2,6 +2,7 @@ package multisig
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/crypto/secp256k1" "github.com/tendermint/tendermint/crypto/secp256k1"


+ 1
- 0
crypto/secp256k1/secp256k1.go View File

@ -12,6 +12,7 @@ import (
"golang.org/x/crypto/ripemd160" // nolint: staticcheck // necessary for Bitcoin address format "golang.org/x/crypto/ripemd160" // nolint: staticcheck // necessary for Bitcoin address format
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
) )


+ 2
- 1
crypto/secp256k1/secp256k1_cgo_test.go View File

@ -3,9 +3,10 @@
package secp256k1 package secp256k1
import ( import (
"github.com/magiconair/properties/assert"
"testing" "testing"
"github.com/magiconair/properties/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )


+ 1
- 0
crypto/sr25519/codec.go View File

@ -2,6 +2,7 @@ package sr25519
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
) )


+ 1
- 0
crypto/tmhash/hash_test.go View File

@ -5,6 +5,7 @@ import (
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/crypto/tmhash"
) )


+ 1
- 0
evidence/codec.go View File

@ -2,6 +2,7 @@ package evidence
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino" cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 2
- 2
evidence/pool.go View File

@ -5,10 +5,10 @@ import (
"sync" "sync"
"time" "time"
clist "github.com/tendermint/tendermint/libs/clist"
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db" dbm "github.com/tendermint/tm-db"
clist "github.com/tendermint/tendermint/libs/clist"
"github.com/tendermint/tendermint/libs/log"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 2
- 1
evidence/pool_test.go View File

@ -8,10 +8,11 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
dbm "github.com/tendermint/tm-db"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time" tmtime "github.com/tendermint/tendermint/types/time"
dbm "github.com/tendermint/tm-db"
) )
func TestMain(m *testing.M) { func TestMain(m *testing.M) {


+ 2
- 1
evidence/reactor_test.go View File

@ -9,12 +9,13 @@ import (
"github.com/go-kit/kit/log/term" "github.com/go-kit/kit/log/term"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
dbm "github.com/tendermint/tm-db"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/crypto/secp256k1" "github.com/tendermint/tendermint/crypto/secp256k1"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
// evidenceLogger is a TestingLogger which uses a different // evidenceLogger is a TestingLogger which uses a different


+ 2
- 1
evidence/store.go View File

@ -3,8 +3,9 @@ package evidence
import ( import (
"fmt" "fmt"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db" dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/types"
) )
/* /*


+ 2
- 1
evidence/store_test.go View File

@ -5,8 +5,9 @@ import (
"time" "time"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db" dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/types"
) )
//------------------------------------------- //-------------------------------------------


+ 1
- 0
libs/clist/clist_test.go View File

@ -8,6 +8,7 @@ import (
"time" "time"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"
) )


+ 0
- 1
libs/kv/kvpair.go View File

@ -35,4 +35,3 @@ func (kvs Pairs) Less(i, j int) bool {
} }
func (kvs Pairs) Swap(i, j int) { kvs[i], kvs[j] = kvs[j], kvs[i] } func (kvs Pairs) Swap(i, j int) { kvs[i], kvs[j] = kvs[j], kvs[i] }
func (kvs Pairs) Sort() { sort.Sort(kvs) } func (kvs Pairs) Sort() { sort.Sort(kvs) }

+ 1
- 0
libs/log/tmfmt_logger_test.go View File

@ -10,6 +10,7 @@ import (
kitlog "github.com/go-kit/kit/log" kitlog "github.com/go-kit/kit/log"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
) )


+ 1
- 0
libs/log/tracing_logger_test.go View File

@ -8,6 +8,7 @@ import (
"testing" "testing"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
) )


+ 1
- 0
libs/pubsub/pubsub.go View File

@ -39,6 +39,7 @@ import (
"sync" "sync"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tendermint/tendermint/libs/service" "github.com/tendermint/tendermint/libs/service"
) )


+ 2
- 1
lite/dbprovider.go View File

@ -6,11 +6,12 @@ import (
"strconv" "strconv"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
dbm "github.com/tendermint/tm-db"
cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino" cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino"
log "github.com/tendermint/tendermint/libs/log" log "github.com/tendermint/tendermint/libs/log"
lerr "github.com/tendermint/tendermint/lite/errors" lerr "github.com/tendermint/tendermint/lite/errors"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
var _ PersistentProvider = (*DBProvider)(nil) var _ PersistentProvider = (*DBProvider)(nil)


+ 2
- 1
lite/dynamic_verifier_test.go View File

@ -8,9 +8,10 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
log "github.com/tendermint/tendermint/libs/log" log "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
const testChainID = "inquiry-test" const testChainID = "inquiry-test"


+ 2
- 1
lite/provider_test.go View File

@ -7,10 +7,11 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
log "github.com/tendermint/tendermint/libs/log" log "github.com/tendermint/tendermint/libs/log"
lerr "github.com/tendermint/tendermint/lite/errors" lerr "github.com/tendermint/tendermint/lite/errors"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
// missingProvider doesn't store anything, always a miss. // missingProvider doesn't store anything, always a miss.


+ 2
- 1
lite/proxy/verifier.go View File

@ -3,10 +3,11 @@ package proxy
import ( import (
"github.com/pkg/errors" "github.com/pkg/errors"
dbm "github.com/tendermint/tm-db"
log "github.com/tendermint/tendermint/libs/log" log "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/lite" "github.com/tendermint/tendermint/lite"
lclient "github.com/tendermint/tendermint/lite/client" lclient "github.com/tendermint/tendermint/lite/client"
dbm "github.com/tendermint/tm-db"
) )
func NewVerifier( func NewVerifier(


+ 2
- 1
lite2/client_benchmark_test.go View File

@ -4,11 +4,12 @@ import (
"testing" "testing"
"time" "time"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/lite2/provider" "github.com/tendermint/tendermint/lite2/provider"
mockp "github.com/tendermint/tendermint/lite2/provider/mock" mockp "github.com/tendermint/tendermint/lite2/provider/mock"
dbs "github.com/tendermint/tendermint/lite2/store/db" dbs "github.com/tendermint/tendermint/lite2/store/db"
dbm "github.com/tendermint/tm-db"
) )
// NOTE: block is produced every minute. Make sure the verification time // NOTE: block is produced every minute. Make sure the verification time


+ 1
- 0
node/codec.go View File

@ -2,6 +2,7 @@ package node
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino" cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino"
) )


+ 2
- 1
node/node.go View File

@ -17,6 +17,8 @@ import (
"github.com/rs/cors" "github.com/rs/cors"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
bcv0 "github.com/tendermint/tendermint/blockchain/v0" bcv0 "github.com/tendermint/tendermint/blockchain/v0"
bcv1 "github.com/tendermint/tendermint/blockchain/v1" bcv1 "github.com/tendermint/tendermint/blockchain/v1"
@ -45,7 +47,6 @@ import (
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time" tmtime "github.com/tendermint/tendermint/types/time"
"github.com/tendermint/tendermint/version" "github.com/tendermint/tendermint/version"
dbm "github.com/tendermint/tm-db"
) )
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------


+ 2
- 1
node/node_test.go View File

@ -12,6 +12,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/abci/example/kvstore" "github.com/tendermint/tendermint/abci/example/kvstore"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
@ -27,7 +29,6 @@ import (
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time" tmtime "github.com/tendermint/tendermint/types/time"
"github.com/tendermint/tendermint/version" "github.com/tendermint/tendermint/version"
dbm "github.com/tendermint/tm-db"
) )
func TestNodeStartStop(t *testing.T) { func TestNodeStartStop(t *testing.T) {


+ 1
- 0
p2p/codec.go View File

@ -2,6 +2,7 @@ package p2p
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino" cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino"
) )


+ 1
- 0
p2p/conn/codec.go View File

@ -2,6 +2,7 @@ package conn
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino" cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino"
) )


+ 1
- 0
p2p/conn/connection.go View File

@ -16,6 +16,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
flow "github.com/tendermint/tendermint/libs/flowrate" flow "github.com/tendermint/tendermint/libs/flowrate"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
tmmath "github.com/tendermint/tendermint/libs/math" tmmath "github.com/tendermint/tendermint/libs/math"


+ 1
- 0
p2p/conn/connection_test.go View File

@ -11,6 +11,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
) )


+ 1
- 0
p2p/conn/secret_connection_test.go View File

@ -16,6 +16,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/crypto/secp256k1" "github.com/tendermint/tendermint/crypto/secp256k1"


+ 1
- 0
p2p/key_test.go View File

@ -7,6 +7,7 @@ import (
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"
) )


+ 1
- 0
p2p/node_info_test.go View File

@ -5,6 +5,7 @@ import (
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
) )


+ 1
- 0
p2p/pex/addrbook_test.go View File

@ -11,6 +11,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
tmmath "github.com/tendermint/tendermint/libs/math" tmmath "github.com/tendermint/tendermint/libs/math"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"


+ 1
- 0
p2p/pex/pex_reactor.go View File

@ -9,6 +9,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tendermint/go-amino" "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/libs/cmap" "github.com/tendermint/tendermint/libs/cmap"
tmmath "github.com/tendermint/tendermint/libs/math" tmmath "github.com/tendermint/tendermint/libs/math"
"github.com/tendermint/tendermint/libs/rand" "github.com/tendermint/tendermint/libs/rand"


+ 2
- 1
p2p/trust/store.go View File

@ -9,8 +9,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/tendermint/tendermint/libs/service"
dbm "github.com/tendermint/tm-db" dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/service"
) )
const defaultStorePeriodicSaveInterval = 1 * time.Minute const defaultStorePeriodicSaveInterval = 1 * time.Minute


+ 2
- 1
p2p/trust/store_test.go View File

@ -10,8 +10,9 @@ import (
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db" dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/log"
) )
func TestTrustMetricStoreSaveLoad(t *testing.T) { func TestTrustMetricStoreSaveLoad(t *testing.T) {


+ 1
- 0
privval/codec.go View File

@ -2,6 +2,7 @@ package privval
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino" cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino"
) )


+ 1
- 0
privval/file_test.go View File

@ -10,6 +10,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time" tmtime "github.com/tendermint/tendermint/types/time"


+ 1
- 0
privval/messages.go View File

@ -2,6 +2,7 @@ package privval
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 0
privval/socket_dialers.go View File

@ -5,6 +5,7 @@ import (
"time" "time"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
tmnet "github.com/tendermint/tendermint/libs/net" tmnet "github.com/tendermint/tendermint/libs/net"
p2pconn "github.com/tendermint/tendermint/p2p/conn" p2pconn "github.com/tendermint/tendermint/p2p/conn"


+ 1
- 0
rpc/client/codec.go View File

@ -2,6 +2,7 @@ package client
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 0
rpc/client/helpers.go View File

@ -5,6 +5,7 @@ import (
"time" "time"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 0
rpc/client/helpers_test.go View File

@ -7,6 +7,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/rpc/client" "github.com/tendermint/tendermint/rpc/client"
"github.com/tendermint/tendermint/rpc/client/mock" "github.com/tendermint/tendermint/rpc/client/mock"
ctypes "github.com/tendermint/tendermint/rpc/core/types" ctypes "github.com/tendermint/tendermint/rpc/core/types"


+ 2
- 1
rpc/core/blocks_test.go View File

@ -7,12 +7,13 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
ctypes "github.com/tendermint/tendermint/rpc/core/types" ctypes "github.com/tendermint/tendermint/rpc/core/types"
rpctypes "github.com/tendermint/tendermint/rpc/lib/types" rpctypes "github.com/tendermint/tendermint/rpc/lib/types"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
func TestBlockchainInfo(t *testing.T) { func TestBlockchainInfo(t *testing.T) {


+ 2
- 1
rpc/core/pipe.go View File

@ -4,6 +4,8 @@ import (
"fmt" "fmt"
"time" "time"
dbm "github.com/tendermint/tm-db"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/consensus" "github.com/tendermint/tendermint/consensus"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
@ -14,7 +16,6 @@ import (
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/state/txindex" "github.com/tendermint/tendermint/state/txindex"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
const ( const (


+ 1
- 0
rpc/core/types/codec.go View File

@ -2,6 +2,7 @@ package coretypes
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 0
rpc/lib/client/integration_test.go View File

@ -14,6 +14,7 @@ import (
"time" "time"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
) )


+ 1
- 0
rpc/lib/client/ws_client.go View File

@ -14,6 +14,7 @@ import (
metrics "github.com/rcrowley/go-metrics" metrics "github.com/rcrowley/go-metrics"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"
"github.com/tendermint/tendermint/libs/service" "github.com/tendermint/tendermint/libs/service"
types "github.com/tendermint/tendermint/rpc/lib/types" types "github.com/tendermint/tendermint/rpc/lib/types"


+ 1
- 0
rpc/lib/client/ws_client_test.go View File

@ -11,6 +11,7 @@ import (
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
types "github.com/tendermint/tendermint/rpc/lib/types" types "github.com/tendermint/tendermint/rpc/lib/types"


+ 1
- 0
rpc/lib/rpc_test.go View File

@ -17,6 +17,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
tmbytes "github.com/tendermint/tendermint/libs/bytes" tmbytes "github.com/tendermint/tendermint/libs/bytes"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"


+ 1
- 0
rpc/lib/server/http_json_handler_test.go View File

@ -13,6 +13,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
types "github.com/tendermint/tendermint/rpc/lib/types" types "github.com/tendermint/tendermint/rpc/lib/types"
) )


+ 1
- 0
rpc/lib/server/parse_test.go View File

@ -9,6 +9,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/libs/bytes" "github.com/tendermint/tendermint/libs/bytes"
types "github.com/tendermint/tendermint/rpc/lib/types" types "github.com/tendermint/tendermint/rpc/lib/types"
) )


+ 1
- 0
scripts/json2wal/main.go View File

@ -15,6 +15,7 @@ import (
"strings" "strings"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cs "github.com/tendermint/tendermint/consensus" cs "github.com/tendermint/tendermint/consensus"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 0
scripts/privValUpgrade_test.go View File

@ -8,6 +8,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/privval" "github.com/tendermint/tendermint/privval"
) )


+ 1
- 0
scripts/wal2json/main.go View File

@ -13,6 +13,7 @@ import (
"os" "os"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cs "github.com/tendermint/tendermint/consensus" cs "github.com/tendermint/tendermint/consensus"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 1
- 0
state/codec.go View File

@ -2,6 +2,7 @@ package state
import ( import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino" cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino"
) )


+ 2
- 1
state/execution.go View File

@ -4,13 +4,14 @@ import (
"fmt" "fmt"
"time" "time"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/fail" "github.com/tendermint/tendermint/libs/fail"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
mempl "github.com/tendermint/tendermint/mempool" mempl "github.com/tendermint/tendermint/mempool"
"github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/proxy"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------


+ 1
- 0
state/execution_test.go View File

@ -7,6 +7,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/abci/example/kvstore" "github.com/tendermint/tendermint/abci/example/kvstore"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"


+ 2
- 1
state/export_test.go View File

@ -1,9 +1,10 @@
package state package state
import ( import (
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
// //


+ 4
- 3
state/state_test.go View File

@ -11,15 +11,16 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/libs/kv" "github.com/tendermint/tendermint/libs/kv"
"github.com/tendermint/tendermint/libs/rand" "github.com/tendermint/tendermint/libs/rand"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
dbm "github.com/tendermint/tm-db"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )


+ 2
- 1
state/store.go View File

@ -3,11 +3,12 @@ package state
import ( import (
"fmt" "fmt"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
tmmath "github.com/tendermint/tendermint/libs/math" tmmath "github.com/tendermint/tendermint/libs/math"
tmos "github.com/tendermint/tendermint/libs/os" tmos "github.com/tendermint/tendermint/libs/os"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
const ( const (


+ 2
- 1
state/store_test.go View File

@ -8,10 +8,11 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
func TestStoreLoadValidators(t *testing.T) { func TestStoreLoadValidators(t *testing.T) {


+ 2
- 1
state/tx_filter_test.go View File

@ -7,10 +7,11 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
func TestTxFilter(t *testing.T) { func TestTxFilter(t *testing.T) {


+ 2
- 1
state/txindex/indexer_service_test.go View File

@ -7,12 +7,13 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
db "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/state/txindex" "github.com/tendermint/tendermint/state/txindex"
"github.com/tendermint/tendermint/state/txindex/kv" "github.com/tendermint/tendermint/state/txindex/kv"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
db "github.com/tendermint/tm-db"
) )
func TestIndexerServiceIndexesBlocks(t *testing.T) { func TestIndexerServiceIndexesBlocks(t *testing.T) {


+ 2
- 1
state/txindex/kv/kv_bench_test.go View File

@ -7,11 +7,12 @@ import (
"io/ioutil" "io/ioutil"
"testing" "testing"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/kv" "github.com/tendermint/tendermint/libs/kv"
"github.com/tendermint/tendermint/libs/pubsub/query" "github.com/tendermint/tendermint/libs/pubsub/query"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
func BenchmarkTxSearch(b *testing.B) { func BenchmarkTxSearch(b *testing.B) {


+ 2
- 1
state/validation.go View File

@ -5,9 +5,10 @@ import (
"errors" "errors"
"fmt" "fmt"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
//----------------------------------------------------- //-----------------------------------------------------


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save