From 3d899a389bcee7f518c0dd1fb339f48e4e5e4648 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 18 Nov 2016 11:02:32 -0300 Subject: [PATCH] test --- src/komodo_notary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_notary.h b/src/komodo_notary.h index d9e529015..bc359650f 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -111,7 +111,7 @@ int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height) } else printf("illegal notaryid.%d vs n.%d\n",kp->notaryid,n); } pthread_mutex_unlock(&komodo_mutex); - if ( mask == ((1LL << n)-1) ) + if ( (n < 64 && mask == ((1LL << n)-1)) || (n == 64 && mask == 0xffffffffffffffffLL) ) return(n); printf("error retrieving notaries ht.%d got mask.%llx for n.%d\n",height,(long long)mask,n); return(-1);