Browse Source

SetRPC/Pipe => core.Set...

pull/43/merge
Ethan Buchman 10 years ago
parent
commit
19a50c1229
2 changed files with 8 additions and 8 deletions
  1. +4
    -4
      daemon/daemon.go
  2. +4
    -4
      rpc/core/pipe.go

+ 4
- 4
daemon/daemon.go View File

@ -151,10 +151,10 @@ func (n *Node) DialSeed() {
}
func (n *Node) StartRpc() {
core.SetPipeBlockStore(n.blockStore)
core.SetPipeConsensusState(n.consensusState)
core.SetPipeMempoolReactor(n.mempoolReactor)
core.SetPipeSwitch(n.sw)
core.SetBlockStore(n.blockStore)
core.SetConsensusState(n.consensusState)
core.SetMempoolReactor(n.mempoolReactor)
core.SetSwitch(n.sw)
rpc.StartHTTPServer()
}


+ 4
- 4
rpc/core/pipe.go View File

@ -12,18 +12,18 @@ var consensusState *consensus.ConsensusState
var mempoolReactor *mempl.MempoolReactor
var p2pSwitch *p2p.Switch
func SetRPCBlockStore(bs *bc.BlockStore) {
func SetBlockStore(bs *bc.BlockStore) {
blockStore = bs
}
func SetPipeConsensusState(cs *consensus.ConsensusState) {
func SetConsensusState(cs *consensus.ConsensusState) {
consensusState = cs
}
func SetPipeMempoolReactor(mr *mempl.MempoolReactor) {
func SetMempoolReactor(mr *mempl.MempoolReactor) {
mempoolReactor = mr
}
func SetPipeSwitch(sw *p2p.Switch) {
func SetSwitch(sw *p2p.Switch) {
p2pSwitch = sw
}

Loading…
Cancel
Save