Return negative

This commit is contained in:
jl777
2019-02-12 08:01:04 -11:00
parent 69ccb69983
commit 072093c628

View File

@@ -416,7 +416,7 @@ int32_t rogue_iterateplayer(uint256 &registertxid,uint256 firsttxid,int32_t firs
if ( ++n >= ROGUE_MAXITERATIONS ) if ( ++n >= ROGUE_MAXITERATIONS )
{ {
fprintf(stderr,"rogue_iterateplayer n.%d, seems something is wrong\n",n); fprintf(stderr,"rogue_iterateplayer n.%d, seems something is wrong\n",n);
break; return(-2);
} }
} }
if ( txid == lasttxid ) if ( txid == lasttxid )
@@ -541,7 +541,7 @@ int32_t rogue_findbaton(struct CCcontract_info *cp,uint256 &playertxid,char **ke
if ( ++n >= ROGUE_MAXITERATIONS ) if ( ++n >= ROGUE_MAXITERATIONS )
{ {
fprintf(stderr,"rogue_findbaton n.%d, seems something is wrong\n",n); fprintf(stderr,"rogue_findbaton n.%d, seems something is wrong\n",n);
break; retyrn(-5);
} }
} }
//fprintf(stderr,"set baton %s\n",txid.GetHex().c_str()); //fprintf(stderr,"set baton %s\n",txid.GetHex().c_str());