mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-20 08:26:31 +00:00
minor fixes - tests pass
This commit is contained in:
@ -280,7 +280,7 @@ func NewByzantinePrivValidator(pv types.PrivValidator) *ByzantinePrivValidator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (privVal *ByzantinePrivValidator) GetAddress() crypto.Address {
|
func (privVal *ByzantinePrivValidator) GetAddress() types.Address {
|
||||||
return privVal.pv.GetAddress()
|
return privVal.pv.GetAddress()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,10 +17,12 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
cmn "github.com/tendermint/tmlibs/common"
|
||||||
|
"github.com/tendermint/tmlibs/log"
|
||||||
|
|
||||||
client "github.com/tendermint/tendermint/rpc/lib/client"
|
client "github.com/tendermint/tendermint/rpc/lib/client"
|
||||||
server "github.com/tendermint/tendermint/rpc/lib/server"
|
server "github.com/tendermint/tendermint/rpc/lib/server"
|
||||||
types "github.com/tendermint/tendermint/rpc/lib/types"
|
types "github.com/tendermint/tendermint/rpc/lib/types"
|
||||||
"github.com/tendermint/tmlibs/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client and Server should work over tcp or unix sockets
|
// Client and Server should work over tcp or unix sockets
|
||||||
|
@ -22,7 +22,8 @@ import (
|
|||||||
// setupTestCase does setup common to all test cases
|
// setupTestCase does setup common to all test cases
|
||||||
func setupTestCase(t *testing.T) (func(t *testing.T), dbm.DB, State) {
|
func setupTestCase(t *testing.T) (func(t *testing.T), dbm.DB, State) {
|
||||||
config := cfg.ResetTestRoot("state_")
|
config := cfg.ResetTestRoot("state_")
|
||||||
stateDB := dbm.NewDB("state", config.DBBackend, config.DBDir())
|
dbType := dbm.DBBackendType(config.DBBackend)
|
||||||
|
stateDB := dbm.NewDB("state", dbType, config.DBDir())
|
||||||
state, err := LoadStateFromDBOrGenesisFile(stateDB, config.GenesisFile())
|
state, err := LoadStateFromDBOrGenesisFile(stateDB, config.GenesisFile())
|
||||||
assert.NoError(t, err, "expected no error on LoadStateFromDBOrGenesisFile")
|
assert.NoError(t, err, "expected no error on LoadStateFromDBOrGenesisFile")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user