From 24447b55a5f485b56f171f6935581b52bd64e60d Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Tue, 10 Dec 2019 19:21:58 -0500 Subject: [PATCH] update komodo_notary.h --- src/komodo_notary.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_notary.h b/src/komodo_notary.h index c260bae5f..f820e0bd5 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -69,7 +69,7 @@ int32_t getkmdseason(int32_t height) return(1); for (int32_t i = 1; i < NUM_KMD_SEASONS; i++) { - if ( height <= KMD_SEASON_HEIGHTS[i] && height >= KMD_SEASON_HEIGHTS[i-1] ) + if ( height <= KMD_SEASON_HEIGHTS[i] && height > KMD_SEASON_HEIGHTS[i-1] ) return(i+1); } return(0); @@ -81,7 +81,7 @@ int32_t getacseason(uint32_t timestamp) return(1); for (int32_t i = 1; i < NUM_KMD_SEASONS; i++) { - if ( timestamp <= KMD_SEASON_TIMESTAMPS[i] && timestamp >= KMD_SEASON_TIMESTAMPS[i-1] ) + if ( timestamp <= KMD_SEASON_TIMESTAMPS[i] && timestamp > KMD_SEASON_TIMESTAMPS[i-1] ) return(i+1); } return(0);