Browse Source

SetRPCSwitch

pull/32/head
Ethan Buchman 10 years ago
committed by Jae Kwon
parent
commit
168b1255ec
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      daemon/daemon.go
  2. +1
    -1
      rpc/rpc.go

+ 1
- 0
daemon/daemon.go 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()
}


+ 1
- 1
rpc/rpc.go 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
}

Loading…
Cancel
Save