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@dexon.org>2019-03-12 12:19:09 +0800
commitd711fef2d53b6dd8f55060c8463f7b38716c44c7 (patch)
tree63188050bf046618df515f71f3c5d5c6b59b0f8f /consensus/errors.go
parente8f768ccdbe2c7f5039153f6c6e7c2b668831fb2 (diff)
downloaddexon-d711fef2d53b6dd8f55060c8463f7b38716c44c7.tar.gz
dexon-d711fef2d53b6dd8f55060c8463f7b38716c44c7.tar.zst
dexon-d711fef2d53b6dd8f55060c8463f7b38716c44c7.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")
)