diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index a0a64231d..16be739e4 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -645,7 +645,7 @@ int32_t komodo_bannedset(int32_t *indallvoutsp,uint256 *array,int32_t max) if ( i != max ) printf("banned txid array error i.%d != max.%d\n",i,max); //else printf("set %d banned txids\n",max); - *allvoutsp = i-1; + *indallvoutsp = i-1; return(0); } diff --git a/src/main.cpp b/src/main.cpp index cae353b38..ab08b5a82 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -759,7 +759,7 @@ int32_t komodo_validate_interest(uint32_t *expiredp,const CTransaction& tx,int32 } else fprintf(stderr,"validateinterest grandfather.%d locktime %u vs txheighttime.%u tiptime.%u txb.%u cmp.%u\n",(int32_t)txheight,tx.nLockTime,txheighttime,tiptime,txblocktime,cmptime); } }*/ - if ( (prev= komodo_chainactive(txheight-1)) != 0 ) + if ( (prev= komodo_chainactive(txheightarg-1)) != 0 ) cmptime = prev->nTime + 600; if ( cmptime > 0 && txheightarg > 246748 ) {