remove viper from rpc except test

This commit is contained in:
Ethan Buchman
2017-04-29 00:07:50 -04:00
parent 1fcc9dc654
commit f0e7f0acf8
6 changed files with 9 additions and 92 deletions

View File

@ -1,8 +1,6 @@
package core
import (
"github.com/spf13/viper"
crypto "github.com/tendermint/go-crypto"
"github.com/tendermint/tendermint/consensus"
p2p "github.com/tendermint/tendermint/p2p"
@ -34,7 +32,6 @@ var (
// external, thread safe interfaces
eventSwitch types.EventSwitch
proxyAppQuery proxy.AppConnQuery
config *viper.Viper
// interfaces defined in types and above
blockStore types.BlockStore
@ -49,10 +46,6 @@ var (
txIndexer txindex.TxIndexer
)
func SetConfig(c *viper.Viper) {
config = c
}
func SetEventSwitch(evsw types.EventSwitch) {
eventSwitch = evsw
}