Add assert message

Tripped me up during build, error was unnecessarily unspecific.
This commit is contained in:
Bruno Škvorc 2019-08-27 14:59:57 +02:00 committed by GitHub
parent 8665efbbd1
commit 5254ec0e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -613,7 +613,7 @@ chronicles.formatIt CrossLink: it.shortLog
static:
# Ensure that get_crosslink_committee(...) can access all committees, which
# requires that SHARD_COUNT >= get_committee_count(...)
doAssert SHARD_COUNT >= SLOTS_PER_EPOCH
doAssert SHARD_COUNT >= SLOTS_PER_EPOCH, "Shard count should exceed number of slots per epoch"
import nimcrypto, json_serialization
export json_serialization