Prevent double spending entropy
This commit is contained in:
@@ -131,9 +131,9 @@ bool mySenddicetransaction(std::string res,uint256 entropyused,uint256 bettxid)
|
|||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
if ( myAddtomempool(tx) != 0 )
|
if ( myAddtomempool(tx) != 0 )
|
||||||
{
|
{
|
||||||
RelayTransaction(tx);
|
|
||||||
if ( DiceEntropyUsed(entropyused,bettxid) == 0 )
|
if ( DiceEntropyUsed(entropyused,bettxid) == 0 )
|
||||||
{
|
{
|
||||||
|
RelayTransaction(tx);
|
||||||
for (i=0; i<MAX_ENTROPYUSED; i++)
|
for (i=0; i<MAX_ENTROPYUSED; i++)
|
||||||
if ( entropytxids[i][0] == zeroid )
|
if ( entropytxids[i][0] == zeroid )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user