mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
core: Modify Hash function for Istanbul header
This commit is contained in:
parent
b7b465c549
commit
b455f55730
1 changed files with 8 additions and 0 deletions
|
|
@ -100,6 +100,14 @@ type headerMarshaling struct {
|
||||||
// Hash returns the block hash of the header, which is simply the keccak256 hash of its
|
// Hash returns the block hash of the header, which is simply the keccak256 hash of its
|
||||||
// RLP encoding.
|
// RLP encoding.
|
||||||
func (h *Header) Hash() common.Hash {
|
func (h *Header) Hash() common.Hash {
|
||||||
|
// If the mix digest is equivalent to the predefined Istanbul digest, use Istanbul
|
||||||
|
// specific hash calculation.
|
||||||
|
//if h.MixDigest == IstanbulDigest {
|
||||||
|
// // Seal is reserved in extra-data. To prove block is signed by the proposer.
|
||||||
|
// if istanbulHeader := IstanbulFilteredHeader(h, true); istanbulHeader != nil {
|
||||||
|
// return rlpHash(istanbulHeader)
|
||||||
|
// }
|
||||||
|
//}
|
||||||
return rlpHash(h)
|
return rlpHash(h)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue