From c2342f7b2424cd2430250e70f6f978577ebc887c Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 30 Jul 2018 09:25:51 -1100 Subject: [PATCH] Add spam prevention --- src/cc/dice.cpp | 2 ++ src/cc/rewards.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index a0fc68a68..a1527fec2 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -431,6 +431,8 @@ uint64_t AddDiceInputs(CScript &scriptPubKey,int32_t fundsflag,struct CCcontract { txid = it->first.txhash; vout = (int32_t)it->first.index; + if ( it->second.satoshis < 10000 ) + continue; fprintf(stderr,"(%s) %s/v%d %.8f\n",coinaddr,uint256_str(str,txid),vout,(double)it->second.satoshis/COIN); for (j=0; jfirst.txhash; vout = (int32_t)it->first.index; + if ( it->second.satoshis < 10000 ) + continue; fprintf(stderr,"(%s) %s/v%d %.8f\n",coinaddr,uint256_str(str,txid),vout,(double)it->second.satoshis/COIN); for (j=0; j