aboutsummaryrefslogtreecommitdiffstats
path: root/core/blocks.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-28 18:06:10 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-28 19:03:10 +0800
commit29b0480cfb2f2bd6c350fdce0063312ad691d7b8 (patch)
treeacffafea6ff39c6e1cad36120bc00d7378565f4c /core/blocks.go
parent27e0d2a97325edc9a870a747412d0b9a2abd1ed1 (diff)
downloadgo-tangerine-29b0480cfb2f2bd6c350fdce0063312ad691d7b8.tar.gz
go-tangerine-29b0480cfb2f2bd6c350fdce0063312ad691d7b8.tar.zst
go-tangerine-29b0480cfb2f2bd6c350fdce0063312ad691d7b8.zip
core, eth/downloader: expose the bad hashes, check in downloader
Diffstat (limited to 'core/blocks.go')
-rw-r--r--core/blocks.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/blocks.go b/core/blocks.go
index d09242a07..35e170af3 100644
--- a/core/blocks.go
+++ b/core/blocks.go
@@ -2,7 +2,8 @@ package core
import "github.com/ethereum/go-ethereum/common"
-var badHashes = []common.Hash{
- common.HexToHash("f269c503aed286caaa0d114d6a5320e70abbc2febe37953207e76a2873f2ba79"),
- common.HexToHash("38f5bbbffd74804820ffa4bab0cd540e9de229725afb98c1a7e57936f4a714bc"),
+// Set of manually tracked bad hashes (usually hard forks)
+var BadHashes = map[common.Hash]bool{
+ common.HexToHash("f269c503aed286caaa0d114d6a5320e70abbc2febe37953207e76a2873f2ba79"): true,
+ common.HexToHash("38f5bbbffd74804820ffa4bab0cd540e9de229725afb98c1a7e57936f4a714bc"): true,
}