Add clear error message for upgrading users

This commit is contained in:
Jack Grigg 2016-10-16 21:03:48 -05:00
parent b6961fc112
commit 85457ddec1
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 5 additions and 0 deletions

View File

@ -324,6 +324,11 @@ public:
READWRITE(VARINT(nDataPos));
if (nStatus & BLOCK_HAVE_UNDO)
READWRITE(VARINT(nUndoPos));
uint8_t tag = 0;
READWRITE(tag);
if (ser_action.ForRead() && tag != 0) {
assert(!"For the first time running zcashd after upgrading to v1.0.0-rc1, please use the -reindex option.");
}
READWRITE(hashAnchor);
// block header