mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
fix
This commit is contained in:
parent
3475a4b225
commit
ef42a3dffd
1 changed files with 7 additions and 1 deletions
|
|
@ -137,6 +137,12 @@ func rlpHash(x interface{}) (h common.Hash) {
|
|||
return h
|
||||
}
|
||||
|
||||
func hash(x interface{}) (h common.Hash) {
|
||||
hw := sha3.NewKeccak256()
|
||||
hw.Sum(h[:0])
|
||||
return h
|
||||
}
|
||||
|
||||
// Body is a simple (mutable, non-safe) data container for storing and moving
|
||||
// a block's data contents (transactions and uncles) together.
|
||||
type Body struct {
|
||||
|
|
@ -351,7 +357,7 @@ func (c *writeCounter) Write(b []byte) (int, error) {
|
|||
}
|
||||
|
||||
func CalcUncleHash(uncles []*Header) common.Hash {
|
||||
return rlpHash(uncles)
|
||||
return hash(uncles)
|
||||
}
|
||||
|
||||
// WithSeal returns a new block with the data from b but the header replaced with
|
||||
|
|
|
|||
Loading…
Reference in a new issue