davebryson / bftdb

Tendermint + Sqlite3 = BFT Database Replication
Other
38 stars 6 forks source link

Upgrade TM #2

Open davebryson opened 4 years ago

davebryson commented 4 years ago

Need to upgrade the TM version and improve the hashing approach used for Txs

mvikharev commented 4 years ago

Master version is not compatible with last tendermint. When building i see following error

# go install -v ./...
github.com/tendermint/tendermint/types
github.com/tendermint/tendermint/abci/example/kvstore
github.com/tendermint/tendermint/store
github.com/tendermint/tendermint/consensus/types
github.com/tendermint/tendermint/proxy
github.com/tendermint/tendermint/privval
github.com/tendermint/tendermint/mempool
github.com/tendermint/tendermint/state/txindex
github.com/tendermint/tendermint/state/txindex/null
github.com/tendermint/tendermint/state/txindex/kv
github.com/tendermint/tendermint/state
github.com/tendermint/tendermint/mock
github.com/tendermint/tendermint/blockchain/v0
github.com/tendermint/tendermint/blockchain/v1
github.com/tendermint/tendermint/consensus
github.com/tendermint/tendermint/evidence
github.com/tendermint/tendermint/rpc/core/types
github.com/tendermint/tendermint/rpc/core
github.com/tendermint/tendermint/rpc/grpc
github.com/tendermint/tendermint/node
github.com/tendermint/tendermint/rpc/client
github.com/davebryson/bftdb/bftdb
app/bftdb
github.com/davebryson/bftdb/cmd
app/cmd
# github.com/davebryson/bftdb/cmd
../github.com/davebryson/bftdb/cmd/start.go:27:20: undefined: "github.com/tendermint/tendermint/types".GenPrivValidatorFS
../github.com/davebryson/bftdb/cmd/start.go:56:23: config.PrivValidatorFile undefined (type *config.Config has no field or method PrivValidatorFile)
../github.com/davebryson/bftdb/cmd/start.go:59:19: undefined: "github.com/tendermint/tendermint/types".LoadOrGenPrivValidatorFS
../github.com/davebryson/bftdb/cmd/start.go:60:37: cannot use app (type *bftdb.App) as type "github.com/tendermint/tendermint/abci/types".Application in argument to proxy.NewLocalClientCreator:
        *bftdb.App does not implement "github.com/tendermint/tendermint/abci/types".Application (wrong type for BeginBlock method)
                have BeginBlock("github.com/tendermint/abci/types".RequestBeginBlock) "github.com/tendermint/abci/types".ResponseBeginBlock
                want BeginBlock("github.com/tendermint/tendermint/abci/types".RequestBeginBlock) "github.com/tendermint/tendermint/abci/types".ResponseBeginBlock
../github.com/davebryson/bftdb/cmd/start.go:61:25: not enough arguments in call to node.NewNode
# app/cmd
cmd/start.go:27:20: undefined: "github.com/tendermint/tendermint/types".GenPrivValidatorFS
cmd/start.go:56:23: config.PrivValidatorFile undefined (type *config.Config has no field or method PrivValidatorFile)
cmd/start.go:59:19: undefined: "github.com/tendermint/tendermint/types".LoadOrGenPrivValidatorFS
cmd/start.go:60:37: cannot use app (type *bftdb.App) as type "github.com/tendermint/tendermint/abci/types".Application in argument to proxy.NewLocalClientCreator:
        *bftdb.App does not implement "github.com/tendermint/tendermint/abci/types".Application (wrong type for BeginBlock method)
                have BeginBlock("github.com/tendermint/abci/types".RequestBeginBlock) "github.com/tendermint/abci/types".ResponseBeginBlock
                want BeginBlock("github.com/tendermint/tendermint/abci/types".RequestBeginBlock) "github.com/tendermint/tendermint/abci/types".ResponseBeginBlock
cmd/start.go:61:25: not enough arguments in call to node.NewNode

What is last compatible tendermint version?

davebryson commented 4 years ago

@mvikharev See here