mirror of https://github.com/poanetwork/quorum.git
15 lines
459 B
Go
15 lines
459 B
Go
|
package eth
|
||
|
|
||
|
import (
|
||
|
"crypto/ecdsa"
|
||
|
|
||
|
"github.com/ethereum/go-ethereum/core/quorum"
|
||
|
"github.com/ethereum/go-ethereum/rpc"
|
||
|
)
|
||
|
|
||
|
func (s *Ethereum) StartBlockVoting(client *rpc.Client, voteKey, blockMakerKey *ecdsa.PrivateKey) error {
|
||
|
s.blockMakerStrat = quorum.NewRandomDeadelineStrategy(s.eventMux, s.voteMinBlockTime, s.voteMaxBlockTime)
|
||
|
quorum.Strategy = s.blockMakerStrat
|
||
|
return s.blockVoting.Start(client, s.blockMakerStrat, voteKey, blockMakerKey)
|
||
|
}
|