diff --git a/core/blockchain.go b/core/blockchain.go index 65487b8c00..4c0634d13f 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1653,7 +1653,7 @@ func (bc *BlockChain) WriteBlockWithState(block *types.Block, receipts []*types. // QUORUM // checks if the consensus engine is Rfat func (bc *BlockChain) isRaft() bool { - return bc.chainConfig.IsQuorum && bc.chainConfig.Istanbul == nil && bc.chainConfig.Clique == nil + return bc.chainConfig.IsQuorum && bc.chainConfig.Istanbul == nil && bc.chainConfig.IBFT == nil && bc.chainConfig.QBFT == nil && bc.chainConfig.Clique == nil } // function specifically added for Raft consensus. This is called from mintNewBlock diff --git a/permission/permission.go b/permission/permission.go index 979d1a8a38..9e8800964c 100644 --- a/permission/permission.go +++ b/permission/permission.go @@ -105,7 +105,7 @@ func (p *PermissionCtrl) asyncStart() { } p.ethClnt = ethclient.NewClient(client) p.eth = ethereum - p.isRaft = p.eth.BlockChain().Config().Istanbul == nil && p.eth.BlockChain().Config().Clique == nil + p.isRaft = p.eth.BlockChain().Config().Istanbul == nil && p.eth.BlockChain().Config().IBFT == nil && p.eth.BlockChain().Config().QBFT == nil && p.eth.BlockChain().Config().Clique == nil p.updateBackEnd() }