@@ -15,7 +15,6 @@ import (
1515
1616 "github.com/libp2p/go-libp2p/core/crypto"
1717 "github.com/libp2p/go-libp2p/core/peer"
18- abcicli "github.com/tendermint/tendermint/abci/client"
1918 abci "github.com/tendermint/tendermint/abci/types"
2019 tconfig "github.com/tendermint/tendermint/config"
2120 tmcrypto "github.com/tendermint/tendermint/crypto"
@@ -25,6 +24,7 @@ import (
2524 "github.com/tendermint/tendermint/libs/log"
2625 "github.com/tendermint/tendermint/p2p"
2726 tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
27+ "github.com/tendermint/tendermint/proxy"
2828 tmtypes "github.com/tendermint/tendermint/types"
2929 "github.com/tendermint/tendermint/version"
3030
@@ -119,7 +119,7 @@ func TestGenesisChunked(t *testing.T) {
119119 mockApp .On ("InitChain" , mock .Anything ).Return (abci.ResponseInitChain {})
120120 privKey , _ , _ := crypto .GenerateEd25519Key (crand .Reader )
121121 signingKey , _ , _ := crypto .GenerateEd25519Key (crand .Reader )
122- n , _ := newFullNode (context .Background (), config.NodeConfig {DALayer : "mock" }, privKey , signingKey , abcicli . NewLocalClient ( nil , mockApp ), genDoc , log .TestingLogger ())
122+ n , _ := newFullNode (context .Background (), config.NodeConfig {DALayer : "mock" }, privKey , signingKey , proxy . NewLocalClientCreator ( mockApp ), genDoc , log .TestingLogger ())
123123
124124 rpc := NewFullClient (n )
125125
@@ -435,7 +435,7 @@ func TestTx(t *testing.T) {
435435 BlockManagerConfig : config.BlockManagerConfig {
436436 BlockTime : 1 * time .Second , // blocks must be at least 1 sec apart for adjacent headers to get verified correctly
437437 }},
438- key , signingKey , abcicli . NewLocalClient ( nil , mockApp ),
438+ key , signingKey , proxy . NewLocalClientCreator ( mockApp ),
439439 & tmtypes.GenesisDoc {ChainID : "test" , Validators : genesisValidators },
440440 log .TestingLogger ())
441441 require .NoError (err )
@@ -692,7 +692,7 @@ func TestValidatorSetHandling(t *testing.T) {
692692 },
693693 signingKey ,
694694 signingKey ,
695- abcicli . NewLocalClient ( nil , apps [i ]),
695+ proxy . NewLocalClientCreator ( apps [i ]),
696696 & tmtypes.GenesisDoc {ChainID : "test" , Validators : genesisValidators },
697697 log .TestingLogger (),
698698 )
@@ -858,7 +858,7 @@ func getRPC(t *testing.T) (*mocks.Application, *FullClient) {
858858 app .On ("InitChain" , mock .Anything ).Return (abci.ResponseInitChain {})
859859 key , _ , _ := crypto .GenerateEd25519Key (crand .Reader )
860860 signingKey , _ , _ := crypto .GenerateEd25519Key (crand .Reader )
861- node , err := newFullNode (context .Background (), config.NodeConfig {DALayer : "mock" }, key , signingKey , abcicli . NewLocalClient ( nil , app ), & tmtypes.GenesisDoc {ChainID : "test" }, log .TestingLogger ())
861+ node , err := newFullNode (context .Background (), config.NodeConfig {DALayer : "mock" }, key , signingKey , proxy . NewLocalClientCreator ( app ), & tmtypes.GenesisDoc {ChainID : "test" }, log .TestingLogger ())
862862 require .NoError (err )
863863 require .NotNil (node )
864864
@@ -939,7 +939,7 @@ func TestMempool2Nodes(t *testing.T) {
939939 BlockManagerConfig : config.BlockManagerConfig {
940940 BlockTime : 1 * time .Second ,
941941 },
942- }, key1 , signingKey1 , abcicli . NewLocalClient ( nil , app ), & tmtypes.GenesisDoc {ChainID : "test" }, log .TestingLogger ())
942+ }, key1 , signingKey1 , proxy . NewLocalClientCreator ( app ), & tmtypes.GenesisDoc {ChainID : "test" }, log .TestingLogger ())
943943 require .NoError (err )
944944 require .NotNil (node1 )
945945
@@ -949,7 +949,7 @@ func TestMempool2Nodes(t *testing.T) {
949949 ListenAddress : "/ip4/127.0.0.1/tcp/9002" ,
950950 Seeds : "/ip4/127.0.0.1/tcp/9001/p2p/" + id1 .Pretty (),
951951 },
952- }, key2 , signingKey2 , abcicli . NewLocalClient ( nil , app ), & tmtypes.GenesisDoc {ChainID : "test" }, log .TestingLogger ())
952+ }, key2 , signingKey2 , proxy . NewLocalClientCreator ( app ), & tmtypes.GenesisDoc {ChainID : "test" }, log .TestingLogger ())
953953 require .NoError (err )
954954 require .NotNil (node1 )
955955
@@ -1034,7 +1034,7 @@ func TestStatus(t *testing.T) {
10341034 },
10351035 key ,
10361036 signingKey ,
1037- abcicli . NewLocalClient ( nil , app ),
1037+ proxy . NewLocalClientCreator ( app ),
10381038 & tmtypes.GenesisDoc {
10391039 ChainID : "test" ,
10401040 Validators : genesisValidators ,
@@ -1134,7 +1134,7 @@ func TestFutureGenesisTime(t *testing.T) {
11341134 BlockTime : 200 * time .Millisecond ,
11351135 }},
11361136 key , signingKey ,
1137- abcicli . NewLocalClient ( nil , mockApp ),
1137+ proxy . NewLocalClientCreator ( mockApp ),
11381138 & tmtypes.GenesisDoc {
11391139 ChainID : "test" ,
11401140 InitialHeight : 1 ,
0 commit comments