SetRPCSwitch

This commit is contained in:
Ethan Buchman 2015-03-16 23:21:42 -07:00 committed by Jae Kwon
parent 983b7f48e8
commit 168b1255ec
2 changed files with 2 additions and 1 deletions

View File

@ -149,6 +149,7 @@ func Daemon() {
rpc.SetRPCBlockStore(n.blockStore)
rpc.SetRPCConsensusState(n.consensusState)
rpc.SetRPCMempoolReactor(n.mempoolReactor)
rpc.SetRPCSwitch(n.sw)
rpc.StartHTTPServer()
}

View File

@ -24,6 +24,6 @@ func SetRPCMempoolReactor(mr *mempl.MempoolReactor) {
mempoolReactor = mr
}
func SetSwitch(sw *p2p.Switch) {
func SetRPCSwitch(sw *p2p.Switch) {
p2pSwitch = sw
}