Test
This commit is contained in:
@@ -123,12 +123,16 @@ int32_t DiceEntropyUsed(uint256 entropyused,uint256 bettxid,CTransaction betTx)
|
|||||||
if ( entropytxids[i][0] == entropyused )
|
if ( entropytxids[i][0] == entropyused )
|
||||||
{
|
{
|
||||||
if ( bettxid == entropytxids[i][1] )
|
if ( bettxid == entropytxids[i][1] )
|
||||||
|
{
|
||||||
|
fprintf(stderr,"found identical entropy used.%d\n",i);
|
||||||
return(i+1);
|
return(i+1);
|
||||||
|
}
|
||||||
fprintf(stderr,"duplicate entropyused %s\n",entropyused.GetHex().c_str());
|
fprintf(stderr,"duplicate entropyused %s\n",entropyused.GetHex().c_str());
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return(0);
|
fprintf(stderr,"cant find entropy used\n");
|
||||||
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool mySenddicetransaction(std::string res,uint256 entropyused,uint256 bettxid,CTransaction betTx)
|
bool mySenddicetransaction(std::string res,uint256 entropyused,uint256 bettxid,CTransaction betTx)
|
||||||
|
|||||||
@@ -1681,8 +1681,10 @@ bool myAddtomempool(CTransaction &tx)
|
|||||||
{
|
{
|
||||||
CValidationState state; CTransaction Ltx; bool fMissingInputs,fOverrideFees = false;
|
CValidationState state; CTransaction Ltx; bool fMissingInputs,fOverrideFees = false;
|
||||||
if ( mempool.lookup(tx.GetHash(),Ltx) == 0 )
|
if ( mempool.lookup(tx.GetHash(),Ltx) == 0 )
|
||||||
|
{
|
||||||
|
fprintf(stderr,"call AcceptToMemoryPool\n");
|
||||||
return(AcceptToMemoryPool(mempool, state, tx, false, &fMissingInputs, !fOverrideFees));
|
return(AcceptToMemoryPool(mempool, state, tx, false, &fMissingInputs, !fOverrideFees));
|
||||||
else return(true);
|
} else return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock)
|
bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock)
|
||||||
|
|||||||
Reference in New Issue
Block a user