mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-20 18:21:22 +00:00
30 lines
634 B
Go
30 lines
634 B
Go
|
package core
|
||
|
|
||
|
import (
|
||
|
"github.com/tendermint/tendermint/consensus"
|
||
|
mempl "github.com/tendermint/tendermint/mempool"
|
||
|
"github.com/tendermint/tendermint/p2p"
|
||
|
"github.com/tendermint/tendermint/types"
|
||
|
)
|
||
|
|
||
|
var blockStore *types.BlockStore
|
||
|
var consensusState *consensus.ConsensusState
|
||
|
var mempoolReactor *mempl.MempoolReactor
|
||
|
var p2pSwitch *p2p.Switch
|
||
|
|
||
|
func SetPipeBlockStore(bs *types.BlockStore) {
|
||
|
blockStore = bs
|
||
|
}
|
||
|
|
||
|
func SetPipeConsensusState(cs *consensus.ConsensusState) {
|
||
|
consensusState = cs
|
||
|
}
|
||
|
|
||
|
func SetPipeMempoolReactor(mr *mempl.MempoolReactor) {
|
||
|
mempoolReactor = mr
|
||
|
}
|
||
|
|
||
|
func SetPipeSwitch(sw *p2p.Switch) {
|
||
|
p2pSwitch = sw
|
||
|
}
|