mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 20:21:56 +00:00
rpc: separate out golang API into rpc/core
This commit is contained in:
29
rpc/core/pipe.go
Normal file
29
rpc/core/pipe.go
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user