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