diff --git a/src/consensus/params.cpp b/src/consensus/params.cpp index 48ff3909a..a6525f4b7 100644 --- a/src/consensus/params.cpp +++ b/src/consensus/params.cpp @@ -47,6 +47,9 @@ namespace Consensus { * first halving. */ int Params::HalvingHeight(int nHeight, int halvingIndex) const { + assert(nHeight >= 0); + assert(halvingIndex > 0); + // zip208 // HalvingHeight(i) := max({ height ⦂ N | Halving(height) < i }) + 1 //