aboutsummaryrefslogtreecommitdiffstats
path: root/light/lightchain_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-04-06 19:58:03 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-04-06 22:34:19 +0800
commit158d603528d2ba36b633a8f22a2bff8329f69717 (patch)
tree7e95ceca2b57686e766182b6e6d14fe10704dcf8 /light/lightchain_test.go
parent702bef8493f0f3486072f1a7593fa582a1fb53d0 (diff)
downloadgo-tangerine-158d603528d2ba36b633a8f22a2bff8329f69717.tar
go-tangerine-158d603528d2ba36b633a8f22a2bff8329f69717.tar.gz
go-tangerine-158d603528d2ba36b633a8f22a2bff8329f69717.tar.bz2
go-tangerine-158d603528d2ba36b633a8f22a2bff8329f69717.tar.lz
go-tangerine-158d603528d2ba36b633a8f22a2bff8329f69717.tar.xz
go-tangerine-158d603528d2ba36b633a8f22a2bff8329f69717.tar.zst
go-tangerine-158d603528d2ba36b633a8f22a2bff8329f69717.zip
consensus, core: drop all the legacy custom core error types
Diffstat (limited to 'light/lightchain_test.go')
-rw-r--r--light/lightchain_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/light/lightchain_test.go b/light/lightchain_test.go
index 41010cf57..21b621046 100644
--- a/light/lightchain_test.go
+++ b/light/lightchain_test.go
@@ -327,9 +327,8 @@ func TestBadHeaderHashes(t *testing.T) {
var err error
headers := makeHeaderChainWithDiff(bc.genesisBlock, []int{1, 2, 4}, 10)
core.BadHashes[headers[2].Hash()] = true
- _, err = bc.InsertHeaderChain(headers, 1)
- if !core.IsBadHashError(err) {
- t.Errorf("error mismatch: want: BadHashError, have: %v", err)
+ if _, err = bc.InsertHeaderChain(headers, 1); err != core.ErrBlacklistedHash {
+ t.Errorf("error mismatch: have: %v, want %v", err, core.ErrBlacklistedHash)
}
}