Skip to content

How does mixHash be used in qbft consensus? #1392

Answered by baptiste-b-pegasys
kth-tw asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, from our code, this value is the istanbul digest.

	// IstanbulDigest represents a hash of "Istanbul practical byzantine fault tolerance"
	// to identify whether the block is from Istanbul consensus engine
	IstanbulDigest = common.HexToHash("0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365")

In ethereum, mixHash is used for the mining PoW consensus (https://gist.github.com/0mkara/b953cc2585b18ee098cd#file-genesis-md), for our PoA, it's for identifying the consensus engine, that's the same function.

You may try a different value and see if it is possible to change it as you want to.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kth-tw
Comment options

@baptiste-b-pegasys
Comment options

@kth-tw
Comment options

Answer selected by antonydenyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants