diff options
author | gary rong <garyrong0905@gmail.com> | 2018-08-23 21:02:57 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-23 21:02:57 +0800 |
commit | 40a71f28cf1ada0bf6bdcdc2f3c6f31a8da134a2 (patch) | |
tree | 70d5c37338def1e3246a3117ac84abca793c476a /core | |
parent | c3f7e3be3b60df3edd168e80aa89ee2992932b0d (diff) | |
download | go-tangerine-40a71f28cf1ada0bf6bdcdc2f3c6f31a8da134a2.tar go-tangerine-40a71f28cf1ada0bf6bdcdc2f3c6f31a8da134a2.tar.gz go-tangerine-40a71f28cf1ada0bf6bdcdc2f3c6f31a8da134a2.tar.bz2 go-tangerine-40a71f28cf1ada0bf6bdcdc2f3c6f31a8da134a2.tar.lz go-tangerine-40a71f28cf1ada0bf6bdcdc2f3c6f31a8da134a2.tar.xz go-tangerine-40a71f28cf1ada0bf6bdcdc2f3c6f31a8da134a2.tar.zst go-tangerine-40a71f28cf1ada0bf6bdcdc2f3c6f31a8da134a2.zip |
miner: fix state commit, track old work packages too (#17490)
* miner: commit state which is relative with sealing result
* consensus, core, miner, mobile: introduce sealHash interface
* miner: evict pending task with threshold
* miner: go fmt
Diffstat (limited to 'core')
-rw-r--r-- | core/types/block.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/core/types/block.go b/core/types/block.go index ae1b4299d..8a21bba1e 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -102,25 +102,6 @@ func (h *Header) Hash() common.Hash { return rlpHash(h) } -// HashNoNonce returns the hash which is used as input for the proof-of-work search. -func (h *Header) HashNoNonce() common.Hash { - return rlpHash([]interface{}{ - h.ParentHash, - h.UncleHash, - h.Coinbase, - h.Root, - h.TxHash, - h.ReceiptHash, - h.Bloom, - h.Difficulty, - h.Number, - h.GasLimit, - h.GasUsed, - h.Time, - h.Extra, - }) -} - // Size returns the approximate memory used by all internal contents. It is used // to approximate and limit the memory consumption of various caches. func (h *Header) Size() common.StorageSize { @@ -324,10 +305,6 @@ func (b *Block) Header() *Header { return CopyHeader(b.header) } // Body returns the non-header content of the block. func (b *Block) Body() *Body { return &Body{b.transactions, b.uncles} } -func (b *Block) HashNoNonce() common.Hash { - return b.header.HashNoNonce() -} - // Size returns the true RLP encoded storage size of the block, either by encoding // and returning it, or returning a previsouly cached value. func (b *Block) Size() common.StorageSize { |