From 946da9652b4b20631040661b3e0245dc6b021552 Mon Sep 17 00:00:00 2001 From: tromp Date: Mon, 31 Oct 2016 20:13:36 -0400 Subject: [PATCH] fix error reporting bug --- equi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/equi.h b/equi.h index 4acd681..f29b39b 100644 --- a/equi.h +++ b/equi.h @@ -65,7 +65,7 @@ void setheader(blake2b_state *ctx, const char *headernonce) { } enum verify_code { POW_OK, POW_HEADER_LENGTH, POW_DUPLICATE, POW_OUT_OF_ORDER, POW_NONZERO_XOR }; -const char *errstr[] = { "OK", "duplicate index", "indices out of order", "nonzero xor" }; +const char *errstr[] = { "OK", "wrong header length", "duplicate index", "indices out of order", "nonzero xor" }; void genhash(blake2b_state *ctx, u32 idx, uchar *hash) { blake2b_state state = *ctx;