|
@ -704,6 +704,7 @@ func testHandshakeReplay(t *testing.T, config *cfg.Config, nBlocks int, mode uin |
|
|
// make a new client creator
|
|
|
// make a new client creator
|
|
|
kvstoreApp := kvstore.NewPersistentKVStoreApplication( |
|
|
kvstoreApp := kvstore.NewPersistentKVStoreApplication( |
|
|
filepath.Join(config.DBDir(), fmt.Sprintf("replay_test_%d_%d_a", nBlocks, mode))) |
|
|
filepath.Join(config.DBDir(), fmt.Sprintf("replay_test_%d_%d_a", nBlocks, mode))) |
|
|
|
|
|
t.Cleanup(func() { require.NoError(t, kvstoreApp.Close()) }) |
|
|
|
|
|
|
|
|
clientCreator2 := proxy.NewLocalClientCreator(kvstoreApp) |
|
|
clientCreator2 := proxy.NewLocalClientCreator(kvstoreApp) |
|
|
if nBlocks > 0 { |
|
|
if nBlocks > 0 { |
|
@ -835,9 +836,11 @@ func buildTMStateFromChain( |
|
|
nBlocks int, |
|
|
nBlocks int, |
|
|
mode uint) sm.State { |
|
|
mode uint) sm.State { |
|
|
// run the whole chain against this client to build up the tendermint state
|
|
|
// run the whole chain against this client to build up the tendermint state
|
|
|
clientCreator := proxy.NewLocalClientCreator( |
|
|
|
|
|
kvstore.NewPersistentKVStoreApplication( |
|
|
|
|
|
filepath.Join(config.DBDir(), fmt.Sprintf("replay_test_%d_%d_t", nBlocks, mode)))) |
|
|
|
|
|
|
|
|
kvstoreApp := kvstore.NewPersistentKVStoreApplication( |
|
|
|
|
|
filepath.Join(config.DBDir(), fmt.Sprintf("replay_test_%d_%d_t", nBlocks, mode))) |
|
|
|
|
|
defer kvstoreApp.Close() |
|
|
|
|
|
clientCreator := proxy.NewLocalClientCreator(kvstoreApp) |
|
|
|
|
|
|
|
|
proxyApp := proxy.NewAppConns(clientCreator) |
|
|
proxyApp := proxy.NewAppConns(clientCreator) |
|
|
if err := proxyApp.Start(); err != nil { |
|
|
if err := proxyApp.Start(); err != nil { |
|
|
panic(err) |
|
|
panic(err) |
|
|