Browse Source

tm-cmn to tm-db (#3850)

* tm-cmn to tm-db

* go.mod changes

* go.mod changes

* more go.mod

* fix tm-db

* ci fix, pending change
pull/3854/head
Marko 5 years ago
committed by GitHub
parent
commit
a1eb2f6c6b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 45 additions and 46 deletions
  1. +3
    -2
      CHANGELOG_PENDING.md
  2. +1
    -1
      abci/example/kvstore/kvstore.go
  3. +1
    -1
      abci/example/kvstore/persistent_kvstore.go
  4. +1
    -1
      blockchain/v0/reactor_test.go
  5. +1
    -1
      blockchain/v1/reactor_test.go
  6. +1
    -1
      consensus/common_test.go
  7. +1
    -1
      consensus/mempool_test.go
  8. +1
    -1
      consensus/reactor_test.go
  9. +1
    -1
      consensus/replay.go
  10. +1
    -1
      consensus/replay_file.go
  11. +1
    -1
      consensus/replay_test.go
  12. +1
    -1
      consensus/wal_generator.go
  13. +1
    -1
      evidence/pool.go
  14. +1
    -1
      evidence/pool_test.go
  15. +1
    -1
      evidence/reactor_test.go
  16. +1
    -1
      evidence/store.go
  17. +1
    -1
      evidence/store_test.go
  18. +1
    -2
      go.mod
  19. +2
    -3
      go.sum
  20. +1
    -1
      lite/dbprovider.go
  21. +1
    -1
      lite/dynamic_verifier_test.go
  22. +1
    -1
      lite/provider_test.go
  23. +1
    -1
      lite/proxy/verifier.go
  24. +1
    -1
      node/node.go
  25. +1
    -1
      node/node_test.go
  26. +1
    -1
      p2p/trust/store.go
  27. +1
    -1
      p2p/trust/store_test.go
  28. +1
    -1
      rpc/core/pipe.go
  29. +1
    -1
      state/execution.go
  30. +1
    -1
      state/export_test.go
  31. +1
    -1
      state/helpers_test.go
  32. +1
    -1
      state/state_test.go
  33. +1
    -1
      state/store.go
  34. +1
    -1
      state/store_test.go
  35. +1
    -1
      state/tx_filter_test.go
  36. +1
    -1
      state/txindex/indexer_service_test.go
  37. +1
    -1
      state/txindex/kv/kv.go
  38. +1
    -1
      state/txindex/kv/kv_test.go
  39. +1
    -1
      state/validation.go
  40. +1
    -1
      store/store.go
  41. +2
    -2
      store/store_test.go

+ 3
- 2
CHANGELOG_PENDING.md View File

@ -14,9 +14,10 @@ program](https://hackerone.com/tendermint).
- Apps
- Go API
- [libs] \#3811 Remove `db` from libs in favor of `https://github.com/tendermint/tm-cmn`
- [libs] \#3811 Remove `db` from libs in favor of `https://github.com/tendermint/tm-db`
### FEATURES:
- [node] Allow replacing existing p2p.Reactor(s) using [`CustomReactors`
option](https://godoc.org/github.com/tendermint/tendermint/node#CustomReactors).
Warning: beware of accidental name clashes. Here is the list of existing
@ -34,5 +35,5 @@ program](https://hackerone.com/tendermint).
### BUG FIXES:
- [p2p] [\#3644](https://github.com/tendermint/tendermint/pull/3644) Fix error logging for connection stop (@defunctzombie)
- [p2p][\#3644](https://github.com/tendermint/tendermint/pull/3644) Fix error logging for connection stop (@defunctzombie)
- [rpc] \#3813 Return err if page is incorrect (less than 0 or greater than total pages)

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

@ -10,7 +10,7 @@ import (
"github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/version"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
var (


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

@ -12,7 +12,7 @@ import (
"github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/libs/log"
tmtypes "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
const (


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

@ -20,7 +20,7 @@ import (
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
var config *cfg.Config


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

@ -20,7 +20,7 @@ import (
"github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
var config *cfg.Config


+ 1
- 1
consensus/common_test.go View File

@ -32,7 +32,7 @@ import (
"github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
const (


+ 1
- 1
consensus/mempool_test.go View File

@ -14,7 +14,7 @@ import (
mempl "github.com/tendermint/tendermint/mempool"
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
// for testing


+ 1
- 1
consensus/reactor_test.go View File

@ -25,7 +25,7 @@ import (
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
//----------------------------------------------


+ 1
- 1
consensus/replay.go View File

@ -13,7 +13,7 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
//auto "github.com/tendermint/tendermint/libs/autofile"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/mock"


+ 1
- 1
consensus/replay_file.go View File

@ -10,7 +10,7 @@ import (
"strings"
"github.com/pkg/errors"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
cfg "github.com/tendermint/tendermint/config"
cmn "github.com/tendermint/tendermint/libs/common"


+ 1
- 1
consensus/replay_test.go View File

@ -29,7 +29,7 @@ import (
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types"
"github.com/tendermint/tendermint/version"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
func TestMain(m *testing.M) {


+ 1
- 1
consensus/wal_generator.go View File

@ -21,7 +21,7 @@ import (
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types"
"github.com/tendermint/tm-cmn/db"
db "github.com/tendermint/tm-db"
)
// WALGenerateNBlocks generates a consensus WAL. It does this by spinning up a


+ 1
- 1
evidence/pool.go View File

@ -6,7 +6,7 @@ import (
clist "github.com/tendermint/tendermint/libs/clist"
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types"


+ 1
- 1
evidence/pool_test.go View File

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


+ 1
- 1
evidence/reactor_test.go View File

@ -14,7 +14,7 @@ import (
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
// evidenceLogger is a TestingLogger which uses a different


+ 1
- 1
evidence/store.go View File

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
/*


+ 1
- 1
evidence/store_test.go View File

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


+ 1
- 2
go.mod View File

@ -38,9 +38,8 @@ require (
github.com/spf13/viper v1.0.0
github.com/stretchr/testify v1.3.0
github.com/tendermint/go-amino v0.14.1
github.com/tendermint/tm-cmn v0.0.0-20190716080004-dfcde30d5acb
github.com/tendermint/tm-db v0.0.0-20190731085305-94017c88bf1d
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
golang.org/x/net v0.0.0-20190628185345-da137c7871d7
google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2 // indirect
google.golang.org/grpc v1.22.0
)

+ 2
- 3
go.sum View File

@ -84,7 +84,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_golang v0.9.1 h1:K47Rk0v/fkEfwfQet2KWhscE0cJzjgCCDBG2KHZoVno=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
github.com/prometheus/client_golang v1.0.0 h1:vrDKnkGzuGvhNAL56c7DBz29ZL+KxnoR0x7enabFceM=
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910 h1:idejC8f05m9MGOsuEi1ATq9shN03HrxNkD/luQvxCv8=
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
github.com/prometheus/common v0.0.0-20181020173914-7e9e6cabbd39 h1:Cto4X6SVMWRPBkJ/3YHn1iDGDGc/Z+sW+AEMKHMVvN4=
@ -116,8 +115,8 @@ github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965 h1:1oFLiOyVl+W7
github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965/go.mod h1:9OrXJhf154huy1nPWmuSrkgjPUtUNhA+Zmy+6AESzuA=
github.com/tendermint/go-amino v0.14.1 h1:o2WudxNfdLNBwMyl2dqOJxiro5rfrEaU0Ugs6offJMk=
github.com/tendermint/go-amino v0.14.1/go.mod h1:i/UKE5Uocn+argJJBb12qTZsCDBcAYMbR92AaJVmKso=
github.com/tendermint/tm-cmn v0.0.0-20190716080004-dfcde30d5acb h1:t/HdvqJc9e1iJDl+hf8wQKfOo40aen+Rkqh4AwEaNsI=
github.com/tendermint/tm-cmn v0.0.0-20190716080004-dfcde30d5acb/go.mod h1:SLI3Mc+gRrorRsAXJArnHz4xmAdJT8O7Ns0NL4HslXE=
github.com/tendermint/tm-db v0.0.0-20190731085305-94017c88bf1d h1:yCHL2COLGLNfb4sA9AlzIHpapb8UATvAQyJulS6Eg6Q=
github.com/tendermint/tm-db v0.0.0-20190731085305-94017c88bf1d/go.mod h1:0cPKWu2Mou3IlxecH+MEUSYc1Ch537alLe6CpFrKzgw=
go.etcd.io/bbolt v1.3.3 h1:MUGmc65QhB3pIlaQ5bB4LwqSj6GIonVJXpZiaKNyaKk=
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=


+ 1
- 1
lite/dbprovider.go View File

@ -10,7 +10,7 @@ import (
log "github.com/tendermint/tendermint/libs/log"
lerr "github.com/tendermint/tendermint/lite/errors"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
var _ PersistentProvider = (*DBProvider)(nil)


+ 1
- 1
lite/dynamic_verifier_test.go View File

@ -10,7 +10,7 @@ import (
log "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
func TestInquirerValidPath(t *testing.T) {


+ 1
- 1
lite/provider_test.go View File

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


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

@ -5,7 +5,7 @@ import (
log "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/lite"
lclient "github.com/tendermint/tendermint/lite/client"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
func NewVerifier(chainID, rootDir string, client lclient.SignStatusClient, logger log.Logger, cacheSize int) (*lite.DynamicVerifier, error) {


+ 1
- 1
node/node.go View File

@ -45,7 +45,7 @@ import (
"github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time"
"github.com/tendermint/tendermint/version"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
//------------------------------------------------------------------------------


+ 1
- 1
node/node_test.go View File

@ -27,7 +27,7 @@ import (
"github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time"
"github.com/tendermint/tendermint/version"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
func TestNodeStartStop(t *testing.T) {


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

@ -10,7 +10,7 @@ import (
"time"
cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
const defaultStorePeriodicSaveInterval = 1 * time.Minute


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

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


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

@ -14,7 +14,7 @@ import (
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/state/txindex"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
const (


+ 1
- 1
state/execution.go View File

@ -10,7 +10,7 @@ import (
mempl "github.com/tendermint/tendermint/mempool"
"github.com/tendermint/tendermint/proxy"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
//-----------------------------------------------------------------------------


+ 1
- 1
state/export_test.go View File

@ -3,7 +3,7 @@ package state
import (
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
//


+ 1
- 1
state/helpers_test.go View File

@ -11,7 +11,7 @@ import (
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
type paramsChangeTestCase struct {


+ 1
- 1
state/state_test.go View File

@ -14,7 +14,7 @@ import (
"github.com/tendermint/tendermint/crypto/ed25519"
cmn "github.com/tendermint/tendermint/libs/common"
sm "github.com/tendermint/tendermint/state"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/types"


+ 1
- 1
state/store.go View File

@ -6,7 +6,7 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
const (


+ 1
- 1
state/store_test.go View File

@ -11,7 +11,7 @@ import (
cfg "github.com/tendermint/tendermint/config"
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
func TestStoreLoadValidators(t *testing.T) {


+ 1
- 1
state/tx_filter_test.go View File

@ -10,7 +10,7 @@ import (
cmn "github.com/tendermint/tendermint/libs/common"
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
func TestTxFilter(t *testing.T) {


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

@ -12,7 +12,7 @@ import (
"github.com/tendermint/tendermint/state/txindex"
"github.com/tendermint/tendermint/state/txindex/kv"
"github.com/tendermint/tendermint/types"
"github.com/tendermint/tm-cmn/db"
db "github.com/tendermint/tm-db"
)
func TestIndexerServiceIndexesBlocks(t *testing.T) {


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

@ -15,7 +15,7 @@ import (
"github.com/tendermint/tendermint/libs/pubsub/query"
"github.com/tendermint/tendermint/state/txindex"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
const (


+ 1
- 1
state/txindex/kv/kv_test.go View File

@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tendermint/libs/common"
db "github.com/tendermint/tm-cmn/db"
db "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/pubsub/query"
"github.com/tendermint/tendermint/state/txindex"


+ 1
- 1
state/validation.go View File

@ -7,7 +7,7 @@ import (
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
)
//-----------------------------------------------------


+ 1
- 1
store/store.go View File

@ -5,7 +5,7 @@ import (
"sync"
cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/types"
)


+ 2
- 2
store/store_test.go View File

@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tendermint/tm-cmn/db"
dbm "github.com/tendermint/tm-cmn/db"
db "github.com/tendermint/tm-db"
dbm "github.com/tendermint/tm-db"
cfg "github.com/tendermint/tendermint/config"
cmn "github.com/tendermint/tendermint/libs/common"


Loading…
Cancel
Save