Bigger spam prevention

This commit is contained in:
jl777
2018-07-30 09:31:28 -11:00
parent c2342f7b24
commit 93ac96fa61
5 changed files with 8 additions and 2 deletions

View File

@@ -127,6 +127,8 @@ uint64_t AddAuctionInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CP
{ {
txid = it->first.txhash; txid = it->first.txhash;
// prevent dup // prevent dup
if ( it->second.satoshis < 1000000 )
continue;
if ( GetTransaction(txid,vintx,hashBlock,false) != 0 ) if ( GetTransaction(txid,vintx,hashBlock,false) != 0 )
{ {
if ( (nValue= IsAuctionvout(cp,vintx,(int32_t)it->first.index)) > 0 ) if ( (nValue= IsAuctionvout(cp,vintx,(int32_t)it->first.index)) > 0 )

View File

@@ -431,7 +431,7 @@ uint64_t AddDiceInputs(CScript &scriptPubKey,int32_t fundsflag,struct CCcontract
{ {
txid = it->first.txhash; txid = it->first.txhash;
vout = (int32_t)it->first.index; vout = (int32_t)it->first.index;
if ( it->second.satoshis < 10000 ) if ( it->second.satoshis < 1000000 )
continue; continue;
fprintf(stderr,"(%s) %s/v%d %.8f\n",coinaddr,uint256_str(str,txid),vout,(double)it->second.satoshis/COIN); fprintf(stderr,"(%s) %s/v%d %.8f\n",coinaddr,uint256_str(str,txid),vout,(double)it->second.satoshis/COIN);
for (j=0; j<mtx.vin.size(); j++) for (j=0; j<mtx.vin.size(); j++)

View File

@@ -127,6 +127,8 @@ uint64_t AddLottoInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPub
{ {
txid = it->first.txhash; txid = it->first.txhash;
// prevent dup // prevent dup
if ( it->second.satoshis < 1000000 )
continue;
if ( GetTransaction(txid,vintx,hashBlock,false) != 0 ) if ( GetTransaction(txid,vintx,hashBlock,false) != 0 )
{ {
if ( (nValue= IsLottovout(cp,vintx,(int32_t)it->first.index)) > 0 ) if ( (nValue= IsLottovout(cp,vintx,(int32_t)it->first.index)) > 0 )

View File

@@ -127,6 +127,8 @@ uint64_t AddPonziInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPub
{ {
txid = it->first.txhash; txid = it->first.txhash;
// prevent dup // prevent dup
if ( it->second.satoshis < 1000000 )
continue;
if ( GetTransaction(txid,vintx,hashBlock,false) != 0 ) if ( GetTransaction(txid,vintx,hashBlock,false) != 0 )
{ {
if ( (nValue= IsPonzivout(cp,vintx,(int32_t)it->first.index)) > 0 ) if ( (nValue= IsPonzivout(cp,vintx,(int32_t)it->first.index)) > 0 )

View File

@@ -273,7 +273,7 @@ uint64_t AddRewardsInputs(CScript &scriptPubKey,int32_t fundsflag,struct CCcontr
{ {
txid = it->first.txhash; txid = it->first.txhash;
vout = (int32_t)it->first.index; vout = (int32_t)it->first.index;
if ( it->second.satoshis < 10000 ) if ( it->second.satoshis < 1000000 )
continue; continue;
fprintf(stderr,"(%s) %s/v%d %.8f\n",coinaddr,uint256_str(str,txid),vout,(double)it->second.satoshis/COIN); fprintf(stderr,"(%s) %s/v%d %.8f\n",coinaddr,uint256_str(str,txid),vout,(double)it->second.satoshis/COIN);
for (j=0; j<mtx.vin.size(); j++) for (j=0; j<mtx.vin.size(); j++)