fix import paths

This commit is contained in:
Ethan Buchman 2018-07-01 22:36:49 -04:00
parent 233b35a2a9
commit d55243f0e6
210 changed files with 305 additions and 305 deletions

View File

@ -5,7 +5,7 @@ import (
"sync" "sync"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
const ( const (

View File

@ -10,7 +10,7 @@ import (
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
var _ Client = (*grpcClient)(nil) var _ Client = (*grpcClient)(nil)

View File

@ -4,7 +4,7 @@ import (
"sync" "sync"
types "github.com/tendermint/tendermint/abci/types" types "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
var _ Client = (*localClient)(nil) var _ Client = (*localClient)(nil)

View File

@ -11,7 +11,7 @@ import (
"time" "time"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
const reqQueueSize = 256 // TODO make configurable const reqQueueSize = 256 // TODO make configurable

View File

@ -11,8 +11,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
abcicli "github.com/tendermint/tendermint/abci/client" abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/example/code" "github.com/tendermint/tendermint/abci/example/code"

View File

@ -6,7 +6,7 @@ import (
"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"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
type CounterApplication struct { type CounterApplication struct {

View File

@ -11,8 +11,8 @@ import (
"golang.org/x/net/context" "golang.org/x/net/context"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
abcicli "github.com/tendermint/tendermint/abci/client" abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/example/code" "github.com/tendermint/tendermint/abci/example/code"

View File

@ -2,7 +2,7 @@ package kvstore
import ( import (
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
// RandVal creates one random validator, with a key derived // RandVal creates one random validator, with a key derived

View File

@ -8,8 +8,8 @@ import (
"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"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
) )
var ( var (

View File

@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
abcicli "github.com/tendermint/tendermint/abci/client" abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/example/code" "github.com/tendermint/tendermint/abci/example/code"

View File

@ -9,9 +9,9 @@ import (
"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"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
const ( const (

View File

@ -6,7 +6,7 @@ import (
"google.golang.org/grpc" "google.golang.org/grpc"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
type GRPCServer struct { type GRPCServer struct {

View File

@ -13,7 +13,7 @@ import (
"fmt" "fmt"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func NewServer(protoAddr, transport string, app types.Application) (cmn.Service, error) { func NewServer(protoAddr, transport string, app types.Application) (cmn.Service, error) {

View File

@ -8,7 +8,7 @@ import (
"sync" "sync"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
// var maxNumberConnections = 2 // var maxNumberConnections = 2

View File

@ -6,7 +6,7 @@ import (
"log" "log"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func main() { func main() {

View File

@ -8,7 +8,7 @@ import (
"reflect" "reflect"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func main() { func main() {

View File

@ -7,7 +7,7 @@ import (
abcicli "github.com/tendermint/tendermint/abci/client" abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func InitChain(client abcicli.Client) error { func InitChain(client abcicli.Client) error {

View File

@ -7,7 +7,7 @@ import (
abcicli "github.com/tendermint/tendermint/abci/client" abcicli "github.com/tendermint/tendermint/abci/client"
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
func startClient(abciType string) abcicli.Client { func startClient(abciType string) abcicli.Client {

View File

@ -8,7 +8,7 @@ import (
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func TestMarshalJSON(t *testing.T) { func TestMarshalJSON(t *testing.T) {

View File

@ -50,7 +50,7 @@ import proto "github.com/gogo/protobuf/proto"
import fmt "fmt" import fmt "fmt"
import math "math" import math "math"
import _ "github.com/gogo/protobuf/gogoproto" import _ "github.com/gogo/protobuf/gogoproto"
import common "github.com/tendermint/tmlibs/common" import common "github.com/tendermint/tendermint/libs/common"
import context "golang.org/x/net/context" import context "golang.org/x/net/context"
import grpc "google.golang.org/grpc" import grpc "google.golang.org/grpc"

View File

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"sort" "sort"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -3,7 +3,7 @@ package benchmarks
import ( import (
"testing" "testing"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func BenchmarkSomething(b *testing.B) { func BenchmarkSomething(b *testing.B) {

View File

@ -4,7 +4,7 @@ import (
"os" "os"
"testing" "testing"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func BenchmarkFileWrite(b *testing.B) { func BenchmarkFileWrite(b *testing.B) {

View File

@ -7,7 +7,7 @@ import (
"time" "time"
rpcclient "github.com/tendermint/tendermint/rpc/lib/client" rpcclient "github.com/tendermint/tendermint/rpc/lib/client"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func main() { func main() {

View File

@ -8,9 +8,9 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
flow "github.com/tendermint/tmlibs/flowrate" flow "github.com/tendermint/tendermint/libs/flowrate"
"github.com/tendermint/tmlibs/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"

View File

@ -5,8 +5,8 @@ import (
"testing" "testing"
"time" "time"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/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"

View File

@ -9,8 +9,8 @@ import (
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
const ( const (

View File

@ -4,9 +4,9 @@ import (
"net" "net"
"testing" "testing"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"sync" "sync"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )

View File

@ -10,8 +10,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tmlibs/db" "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )

View File

@ -5,8 +5,8 @@ import (
"os" "os"
crypto "github.com/tendermint/tendermint/crypto" crypto "github.com/tendermint/tendermint/crypto"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/privval" "github.com/tendermint/tendermint/privval"
) )

View File

@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
// GenNodeKeyCmd allows the generation of a node key. It prints node's ID to // GenNodeKeyCmd allows the generation of a node key. It prints node's ID to

View File

@ -9,7 +9,7 @@ import (
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/privval" "github.com/tendermint/tendermint/privval"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
// InitFilesCmd initialises a fresh Tendermint Core instance. // InitFilesCmd initialises a fresh Tendermint Core instance.

View File

@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/lite/proxy" "github.com/tendermint/tendermint/lite/proxy"
rpcclient "github.com/tendermint/tendermint/rpc/client" rpcclient "github.com/tendermint/tendermint/rpc/client"

View File

@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/tendermint/tendermint/privval" "github.com/tendermint/tendermint/privval"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
// ResetAllCmd removes the database of this Tendermint core // ResetAllCmd removes the database of this Tendermint core

View File

@ -7,9 +7,9 @@ import (
"github.com/spf13/viper" "github.com/spf13/viper"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tmlibs/cli" "github.com/tendermint/tendermint/libs/cli"
tmflags "github.com/tendermint/tmlibs/cli/flags" tmflags "github.com/tendermint/tendermint/libs/cli/flags"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
var ( var (

View File

@ -14,8 +14,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tmlibs/cli" "github.com/tendermint/tendermint/libs/cli"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
var ( var (

View File

@ -14,7 +14,7 @@ import (
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/privval" "github.com/tendermint/tendermint/privval"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
var ( var (

View File

@ -4,7 +4,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/tendermint/tmlibs/cli" "github.com/tendermint/tendermint/libs/cli"
cmd "github.com/tendermint/tendermint/cmd/tendermint/commands" cmd "github.com/tendermint/tendermint/cmd/tendermint/commands"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"

View File

@ -6,7 +6,7 @@ import (
"path/filepath" "path/filepath"
"text/template" "text/template"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
var configTemplate *template.Template var configTemplate *template.Template

View File

@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func init() { func init() {

View File

@ -22,9 +22,9 @@ import (
"github.com/tendermint/tendermint/privval" "github.com/tendermint/tendermint/privval"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
"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"

View File

@ -10,7 +10,7 @@ import (
"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"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )

View File

@ -9,8 +9,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
cstypes "github.com/tendermint/tendermint/consensus/types" cstypes "github.com/tendermint/tendermint/consensus/types"
tmevents "github.com/tendermint/tendermint/libs/events" tmevents "github.com/tendermint/tendermint/libs/events"

View File

@ -11,8 +11,8 @@ import (
"time" "time"
"github.com/tendermint/tendermint/abci/example/kvstore" "github.com/tendermint/tendermint/abci/example/kvstore"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"

View File

@ -11,10 +11,10 @@ import (
"time" "time"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
//auto "github.com/tendermint/tmlibs/autofile" //auto "github.com/tendermint/tendermint/libs/autofile"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/proxy"
sm "github.com/tendermint/tendermint/state" sm "github.com/tendermint/tendermint/state"

View File

@ -16,9 +16,9 @@ import (
"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/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
const ( const (

View File

@ -19,16 +19,16 @@ import (
"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"
crypto "github.com/tendermint/tendermint/crypto" crypto "github.com/tendermint/tendermint/crypto"
auto "github.com/tendermint/tmlibs/autofile" auto "github.com/tendermint/tendermint/libs/autofile"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/privval" "github.com/tendermint/tendermint/privval"
"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/types" "github.com/tendermint/tendermint/types"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
var consensusReplayConfig *cfg.Config var consensusReplayConfig *cfg.Config

View File

@ -10,8 +10,8 @@ import (
"time" "time"
fail "github.com/ebuchman/fail-test" fail "github.com/ebuchman/fail-test"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
cstypes "github.com/tendermint/tendermint/consensus/types" cstypes "github.com/tendermint/tendermint/consensus/types"

View File

@ -10,8 +10,8 @@ import (
cstypes "github.com/tendermint/tendermint/consensus/types" cstypes "github.com/tendermint/tendermint/consensus/types"
tmpubsub "github.com/tendermint/tendermint/libs/pubsub" tmpubsub "github.com/tendermint/tendermint/libs/pubsub"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
func init() { func init() {

View File

@ -3,8 +3,8 @@ package consensus
import ( import (
"time" "time"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
type RoundVoteSet struct { type RoundVoteSet struct {

View File

@ -6,7 +6,7 @@ import (
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
var config *cfg.Config // NOTE: must be reset for each _test.go file var config *cfg.Config // NOTE: must be reset for each _test.go file

View File

@ -5,7 +5,7 @@ import (
"time" "time"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@ -6,7 +6,7 @@ import (
"time" "time"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@ -7,7 +7,7 @@ import (
"github.com/tendermint/go-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"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func BenchmarkRoundStateDeepCopy(b *testing.B) { func BenchmarkRoundStateDeepCopy(b *testing.B) {

View File

@ -1,7 +1,7 @@
package consensus package consensus
import ( import (
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
// kind of arbitrary // kind of arbitrary

View File

@ -12,8 +12,8 @@ import (
amino "github.com/tendermint/go-amino" amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
auto "github.com/tendermint/tmlibs/autofile" auto "github.com/tendermint/tendermint/libs/autofile"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
const ( const (

View File

@ -17,10 +17,10 @@ import (
"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/types" "github.com/tendermint/tendermint/types"
auto "github.com/tendermint/tmlibs/autofile" auto "github.com/tendermint/tendermint/libs/autofile"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tmlibs/db" "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
// WALWithNBlocks generates a consensus WAL. It does this by spining up a // WALWithNBlocks generates a consensus WAL. It does this by spining up a

View File

@ -9,7 +9,7 @@ import (
"github.com/tendermint/tendermint/consensus/types" "github.com/tendermint/tendermint/consensus/types"
tmtypes "github.com/tendermint/tendermint/types" tmtypes "github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View File

@ -2,7 +2,7 @@ package merkle
import ( import (
"github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/crypto/tmhash"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
// Merkle tree from a map. // Merkle tree from a map.

View File

@ -3,8 +3,8 @@ package merkle
import ( import (
"bytes" "bytes"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
. "github.com/tendermint/tmlibs/test" . "github.com/tendermint/tendermint/libs/test"
"github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/crypto/tmhash"
"testing" "testing"

View File

@ -12,7 +12,7 @@ import (
"github.com/tendermint/ed25519" "github.com/tendermint/ed25519"
"github.com/tendermint/ed25519/extra25519" "github.com/tendermint/ed25519/extra25519"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/crypto/tmhash"
) )

View File

@ -9,7 +9,7 @@ import (
"io" "io"
"sync" "sync"
. "github.com/tendermint/tmlibs/common" . "github.com/tendermint/tendermint/libs/common"
) )
var gRandInfo *randInfo var gRandInfo *randInfo

View File

@ -5,7 +5,7 @@ import (
"crypto/subtle" "crypto/subtle"
. "github.com/tendermint/tmlibs/common" . "github.com/tendermint/tendermint/libs/common"
) )
func SignatureFromBytes(pubKeyBytes []byte) (pubKey Signature, err error) { func SignatureFromBytes(pubKeyBytes []byte) (pubKey Signature, err error) {

View File

@ -3,7 +3,7 @@ package crypto
import ( import (
"errors" "errors"
. "github.com/tendermint/tmlibs/common" . "github.com/tendermint/tendermint/libs/common"
"golang.org/x/crypto/nacl/secretbox" "golang.org/x/crypto/nacl/secretbox"
) )

View File

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"sync" "sync"
clist "github.com/tendermint/tmlibs/clist" clist "github.com/tendermint/tendermint/libs/clist"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tmlibs/log" "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"

View File

@ -9,7 +9,7 @@ import (
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/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
) )
var mockState = sm.State{} var mockState = sm.State{}

View File

@ -6,8 +6,8 @@ import (
"time" "time"
"github.com/tendermint/go-amino" "github.com/tendermint/go-amino"
clist "github.com/tendermint/tmlibs/clist" clist "github.com/tendermint/tendermint/libs/clist"
"github.com/tendermint/tmlibs/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"

View File

@ -10,8 +10,8 @@ import (
"github.com/go-kit/kit/log/term" "github.com/go-kit/kit/log/term"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"

View File

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

View File

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

View File

@ -5,7 +5,7 @@ import (
"sync" "sync"
"time" "time"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
/* AutoFile usage /* AutoFile usage

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
"time" "time"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func TestSIGHUP(t *testing.T) { func TestSIGHUP(t *testing.T) {

View File

@ -8,8 +8,8 @@ import (
"strconv" "strconv"
"strings" "strings"
auto "github.com/tendermint/tmlibs/autofile" auto "github.com/tendermint/tendermint/libs/autofile"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
const Version = "0.0.1" const Version = "0.0.1"

View File

@ -15,7 +15,7 @@ import (
"sync" "sync"
"time" "time"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
const ( const (

View File

@ -13,7 +13,7 @@ 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" cmn "github.com/tendermint/tendermint/libs/common"
) )
// NOTE: Returned group has ticker stopped // NOTE: Returned group has ticker stopped

View File

@ -5,7 +5,7 @@ import (
"crypto/sha256" "crypto/sha256"
"testing" "testing"
"github.com/tendermint/tmlibs/bech32" "github.com/tendermint/tendermint/libs/bech32"
) )
func TestEncodeAndDecode(t *testing.T) { func TestEncodeAndDecode(t *testing.T) {

View File

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

View File

@ -5,8 +5,8 @@ import (
"strings" "strings"
"testing" "testing"
tmflags "github.com/tendermint/tmlibs/cli/flags" tmflags "github.com/tendermint/tendermint/libs/cli/flags"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
const ( const (

View File

@ -50,7 +50,7 @@ func TestRepeatTimer(t *testing.T) {
// TODO detect number of running // TODO detect number of running
// goroutines to ensure that // goroutines to ensure that
// no other times will fire. // no other times will fire.
// See https://github.com/tendermint/tmlibs/issues/120. // See https://github.com/tendermint/tendermint/libs/issues/120.
time.Sleep(time.Millisecond * 100) time.Sleep(time.Millisecond * 100)
done := true done := true
select { select {

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"sync/atomic" "sync/atomic"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
var ( var (

View File

@ -8,7 +8,7 @@ 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" cmn "github.com/tendermint/tendermint/libs/common"
) )
func cleanupDBDir(dir, name string) { func cleanupDBDir(dir, name string) {

View File

@ -8,7 +8,7 @@ import (
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func BenchmarkRandomReadsWrites2(b *testing.B) { func BenchmarkRandomReadsWrites2(b *testing.B) {

View File

@ -7,7 +7,7 @@ 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" cmn "github.com/tendermint/tendermint/libs/common"
) )
//---------------------------------------- //----------------------------------------

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"sync" "sync"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func _fmt(f string, az ...interface{}) string { func _fmt(f string, az ...interface{}) string {

View File

@ -10,7 +10,7 @@ import (
"sync" "sync"
"github.com/pkg/errors" "github.com/pkg/errors"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
const ( const (

View File

@ -10,7 +10,7 @@ import (
"github.com/syndtr/goleveldb/leveldb/iterator" "github.com/syndtr/goleveldb/leveldb/iterator"
"github.com/syndtr/goleveldb/leveldb/opt" "github.com/syndtr/goleveldb/leveldb/opt"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func init() { func init() {

View File

@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"testing" "testing"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
func BenchmarkRandomReadsWrites(b *testing.B) { func BenchmarkRandomReadsWrites(b *testing.B) {

View File

@ -114,7 +114,7 @@ func (db *MemDB) Close() {
// database, we don't have a destination // database, we don't have a destination
// to flush contents to nor do we want // to flush contents to nor do we want
// any data loss on invoking Close() // any data loss on invoking Close()
// See the discussion in https://github.com/tendermint/tmlibs/pull/56 // See the discussion in https://github.com/tendermint/tendermint/libs/pull/56
} }
// Implements DB. // Implements DB.

View File

@ -4,7 +4,7 @@ import (
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials"
protodb "github.com/tendermint/tmlibs/db/remotedb/proto" protodb "github.com/tendermint/tendermint/libs/db/remotedb/proto"
) )
// Security defines how the client will talk to the gRPC server. // Security defines how the client will talk to the gRPC server.

View File

@ -5,8 +5,8 @@ import (
"context" "context"
"log" "log"
grpcdb "github.com/tendermint/tmlibs/db/remotedb/grpcdb" grpcdb "github.com/tendermint/tendermint/libs/db/remotedb/grpcdb"
protodb "github.com/tendermint/tmlibs/db/remotedb/proto" protodb "github.com/tendermint/tendermint/libs/db/remotedb/proto"
) )
func Example() { func Example() {

View File

@ -9,8 +9,8 @@ import (
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials"
"github.com/tendermint/tmlibs/db" "github.com/tendermint/tendermint/libs/db"
protodb "github.com/tendermint/tmlibs/db/remotedb/proto" protodb "github.com/tendermint/tendermint/libs/db/remotedb/proto"
) )
// ListenAndServe is a blocking function that sets up a gRPC based // ListenAndServe is a blocking function that sets up a gRPC based
@ -58,7 +58,7 @@ var _ protodb.DBServer = (*server)(nil)
// * fsdb // * fsdb
// * memdB // * memdB
// * leveldb // * leveldb
// See https://godoc.org/github.com/tendermint/tmlibs/db#DBBackendType // See https://godoc.org/github.com/tendermint/tendermint/libs/db#DBBackendType
func (s *server) Init(ctx context.Context, in *protodb.Init) (*protodb.Entity, error) { func (s *server) Init(ctx context.Context, in *protodb.Init) (*protodb.Entity, error) {
s.mu.Lock() s.mu.Lock()
defer s.mu.Unlock() defer s.mu.Unlock()

View File

@ -4,9 +4,9 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/tendermint/tmlibs/db" "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tmlibs/db/remotedb/grpcdb" "github.com/tendermint/tendermint/libs/db/remotedb/grpcdb"
protodb "github.com/tendermint/tmlibs/db/remotedb/proto" protodb "github.com/tendermint/tendermint/libs/db/remotedb/proto"
) )
type RemoteDB struct { type RemoteDB struct {

View File

@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/tendermint/tmlibs/db/remotedb" "github.com/tendermint/tendermint/libs/db/remotedb"
"github.com/tendermint/tmlibs/db/remotedb/grpcdb" "github.com/tendermint/tendermint/libs/db/remotedb/grpcdb"
) )
func TestRemoteDB(t *testing.T) { func TestRemoteDB(t *testing.T) {

View File

@ -6,7 +6,7 @@ package events
import ( import (
"sync" "sync"
cmn "github.com/tendermint/tmlibs/common" cmn "github.com/tendermint/tendermint/libs/common"
) )
// Generic event data can be typed and registered with tendermint/go-amino // Generic event data can be typed and registered with tendermint/go-amino

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
func TestVariousLevels(t *testing.T) { func TestVariousLevels(t *testing.T) {

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
"github.com/go-logfmt/logfmt" "github.com/go-logfmt/logfmt"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
func TestLoggerLogsItsErrors(t *testing.T) { func TestLoggerLogsItsErrors(t *testing.T) {

View File

@ -10,7 +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/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
func TestTMFmtLogger(t *testing.T) { func TestTMFmtLogger(t *testing.T) {

View File

@ -8,7 +8,7 @@ import (
"testing" "testing"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tendermint/libs/log"
) )
func TestTracingLogger(t *testing.T) { func TestTracingLogger(t *testing.T) {

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