Skip to content

Commit

Permalink
refactor: update the code dependent on light client
Browse files Browse the repository at this point in the history
  • Loading branch information
shotonoff committed Aug 9, 2023
1 parent 98e0889 commit a7281c2
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions cmd/tenderdash/commands/light.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import (

"github.com/tendermint/tendermint/config"
dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/dash/light"
lproxy "github.com/tendermint/tendermint/dash/light/proxy"
lrpc "github.com/tendermint/tendermint/dash/light/rpc"
dbs "github.com/tendermint/tendermint/dash/light/store/db"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light"
lproxy "github.com/tendermint/tendermint/light/proxy"
lrpc "github.com/tendermint/tendermint/light/rpc"
dbs "github.com/tendermint/tendermint/light/store/db"
rpcserver "github.com/tendermint/tendermint/rpc/jsonrpc/server"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/statesync/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

sync "github.com/sasha-s/go-deadlock"

"github.com/tendermint/tendermint/dash/light/provider"
"github.com/tendermint/tendermint/internal/p2p"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light/provider"
ssproto "github.com/tendermint/tendermint/proto/tendermint/statesync"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tendermint/tendermint/types"
Expand Down
2 changes: 1 addition & 1 deletion internal/statesync/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/config"
dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/dash/light/provider"
"github.com/tendermint/tendermint/internal/consensus"
"github.com/tendermint/tendermint/internal/eventbus"
"github.com/tendermint/tendermint/internal/p2p"
sm "github.com/tendermint/tendermint/internal/state"
"github.com/tendermint/tendermint/internal/store"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/service"
"github.com/tendermint/tendermint/light/provider"
ssproto "github.com/tendermint/tendermint/proto/tendermint/statesync"
"github.com/tendermint/tendermint/types"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/statesync/reactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import (
"github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/crypto"
dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/dash/light/provider"
"github.com/tendermint/tendermint/internal/p2p"
"github.com/tendermint/tendermint/internal/proxy"
smmocks "github.com/tendermint/tendermint/internal/state/mocks"
"github.com/tendermint/tendermint/internal/statesync/mocks"
"github.com/tendermint/tendermint/internal/store"
"github.com/tendermint/tendermint/internal/test/factory"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light/provider"
ssproto "github.com/tendermint/tendermint/proto/tendermint/statesync"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tendermint/tendermint/types"
Expand Down
10 changes: 5 additions & 5 deletions internal/statesync/stateprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import (
dbm "github.com/tendermint/tm-db"

dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/dash/light"
lightprovider "github.com/tendermint/tendermint/dash/light/provider"
lighthttp "github.com/tendermint/tendermint/dash/light/provider/http"
lightrpc "github.com/tendermint/tendermint/dash/light/rpc"
lightdb "github.com/tendermint/tendermint/dash/light/store/db"
"github.com/tendermint/tendermint/internal/p2p"
sm "github.com/tendermint/tendermint/internal/state"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light"
lightprovider "github.com/tendermint/tendermint/light/provider"
lighthttp "github.com/tendermint/tendermint/light/provider/http"
lightrpc "github.com/tendermint/tendermint/light/rpc"
lightdb "github.com/tendermint/tendermint/light/store/db"
ssproto "github.com/tendermint/tendermint/proto/tendermint/statesync"
rpchttp "github.com/tendermint/tendermint/rpc/client/http"
"github.com/tendermint/tendermint/types"
Expand Down
2 changes: 1 addition & 1 deletion internal/statesync/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (

abciclient "github.com/tendermint/tendermint/abci/client"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/dash/light"
"github.com/tendermint/tendermint/internal/p2p"
"github.com/tendermint/tendermint/internal/proxy"
sm "github.com/tendermint/tendermint/internal/state"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light"
ssproto "github.com/tendermint/tendermint/proto/tendermint/statesync"
"github.com/tendermint/tendermint/types"
)
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ import (
"github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/crypto/ed25519"
dashcore "github.com/tendermint/tendermint/dash/core"
"github.com/tendermint/tendermint/dash/light"
lproxy "github.com/tendermint/tendermint/dash/light/proxy"
lrpc "github.com/tendermint/tendermint/dash/light/rpc"
dbs "github.com/tendermint/tendermint/dash/light/store/db"
"github.com/tendermint/tendermint/internal/p2p"
"github.com/tendermint/tendermint/libs/log"
tmnet "github.com/tendermint/tendermint/libs/net"
"github.com/tendermint/tendermint/light"
lproxy "github.com/tendermint/tendermint/light/proxy"
lrpc "github.com/tendermint/tendermint/light/rpc"
dbs "github.com/tendermint/tendermint/light/store/db"
"github.com/tendermint/tendermint/node"
"github.com/tendermint/tendermint/privval"
grpcprivval "github.com/tendermint/tendermint/privval/grpc"
Expand Down

0 comments on commit a7281c2

Please sign in to comment.