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 /consensus/ethash/sealer_test.go | |
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 'consensus/ethash/sealer_test.go')
-rw-r--r-- | consensus/ethash/sealer_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/consensus/ethash/sealer_test.go b/consensus/ethash/sealer_test.go index 6c7157a5a..d1b66f9cf 100644 --- a/consensus/ethash/sealer_test.go +++ b/consensus/ethash/sealer_test.go @@ -51,7 +51,7 @@ func TestRemoteNotify(t *testing.T) { ethash.Seal(nil, block, nil) select { case work := <-sink: - if want := header.HashNoNonce().Hex(); work[0] != want { + if want := ethash.SealHash(header).Hex(); work[0] != want { t.Errorf("work packet hash mismatch: have %s, want %s", work[0], want) } if want := common.BytesToHash(SeedHash(header.Number.Uint64())).Hex(); work[1] != want { |