aboutsummaryrefslogtreecommitdiffstats
path: root/consensus/errors.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-01-24 10:38:28 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:21 +0800
commit51d06935552f8475f95217a268666a8aa24d8a5d (patch)
tree443413591e4ecd8446fc677800f0a37609162d95 /consensus/errors.go
parentb9defd2cc002d3b5bb3284f9bf11bb08a8e50939 (diff)
downloadgo-tangerine-51d06935552f8475f95217a268666a8aa24d8a5d.tar
go-tangerine-51d06935552f8475f95217a268666a8aa24d8a5d.tar.gz
go-tangerine-51d06935552f8475f95217a268666a8aa24d8a5d.tar.bz2
go-tangerine-51d06935552f8475f95217a268666a8aa24d8a5d.tar.lz
go-tangerine-51d06935552f8475f95217a268666a8aa24d8a5d.tar.xz
go-tangerine-51d06935552f8475f95217a268666a8aa24d8a5d.tar.zst
go-tangerine-51d06935552f8475f95217a268666a8aa24d8a5d.zip
core, dex/downloader: polish headers verification and blocks insertion logic (#168)
Refactor GenerateDexonChain function, move governance tx logic to the user of GenerateDexonChain (testchain_test.go) and move fake node set code to FakeDexcon.
Diffstat (limited to 'consensus/errors.go')
-rw-r--r--consensus/errors.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/consensus/errors.go b/consensus/errors.go
index a005c5f63..204f09f21 100644
--- a/consensus/errors.go
+++ b/consensus/errors.go
@@ -34,4 +34,6 @@ var (
// ErrInvalidNumber is returned if a block's number doesn't equal it's parent's
// plus one.
ErrInvalidNumber = errors.New("invalid block number")
+
+ ErrWitnessMismatch = errors.New("witness mismatch")
)