SetRPCSwitch
This commit is contained in:
parent
983b7f48e8
commit
168b1255ec
|
@ -149,6 +149,7 @@ func Daemon() {
|
|||
rpc.SetRPCBlockStore(n.blockStore)
|
||||
rpc.SetRPCConsensusState(n.consensusState)
|
||||
rpc.SetRPCMempoolReactor(n.mempoolReactor)
|
||||
rpc.SetRPCSwitch(n.sw)
|
||||
rpc.StartHTTPServer()
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,6 @@ func SetRPCMempoolReactor(mr *mempl.MempoolReactor) {
|
|||
mempoolReactor = mr
|
||||
}
|
||||
|
||||
func SetSwitch(sw *p2p.Switch) {
|
||||
func SetRPCSwitch(sw *p2p.Switch) {
|
||||
p2pSwitch = sw
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue