diff --git a/src/komodo.h b/src/komodo.h index 6e5e582fa..96259de23 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -672,7 +672,7 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr } else ccdata.len = MoMoMdata.len = 0; } } - if ( MoM == zero || MoMdepth > 1440 || MoMdepth < 0 ) + if ( MoM == zero || MoMdepth > *notarizedheightp || MoMdepth < 0 ) { memset(&MoM,0,sizeof(MoM)); MoMdepth = 0;