mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-26 03:01:42 +00:00
Include peer round states in the dump_consensus_state RPC call.
This commit is contained in:
@ -10,6 +10,7 @@ import (
|
||||
|
||||
var blockStore *bc.BlockStore
|
||||
var consensusState *consensus.ConsensusState
|
||||
var consensusReactor *consensus.ConsensusReactor
|
||||
var mempoolReactor *mempl.MempoolReactor
|
||||
var p2pSwitch *p2p.Switch
|
||||
|
||||
@ -21,6 +22,10 @@ func SetConsensusState(cs *consensus.ConsensusState) {
|
||||
consensusState = cs
|
||||
}
|
||||
|
||||
func SetConsensusReactor(cr *consensus.ConsensusReactor) {
|
||||
consensusReactor = cr
|
||||
}
|
||||
|
||||
func SetMempoolReactor(mr *mempl.MempoolReactor) {
|
||||
mempoolReactor = mr
|
||||
}
|
||||
@ -29,6 +34,7 @@ func SetSwitch(sw *p2p.Switch) {
|
||||
p2pSwitch = sw
|
||||
}
|
||||
|
||||
// JAE Why is this here?
|
||||
func SetPrivValidator(priv *state.PrivValidator) {
|
||||
consensusState.SetPrivValidator(priv)
|
||||
consensusReactor.SetPrivValidator(priv)
|
||||
}
|
||||
|
Reference in New Issue
Block a user