Test
This commit is contained in:
@@ -221,7 +221,6 @@ uint64_t AddNormalinputs(CMutableTransaction &mtx,CPubKey mypk,uint64_t total,in
|
|||||||
if ( j != mtx.vin.size() )
|
if ( j != mtx.vin.size() )
|
||||||
continue;
|
continue;
|
||||||
if ( myGettxout(txid,vout) == out.tx->vout[out.i].nValue )
|
if ( myGettxout(txid,vout) == out.tx->vout[out.i].nValue )
|
||||||
//if ( GetTransaction(txid,tx,hashBlock,false) != 0 && tx.IsCoinBase() == 0 )
|
|
||||||
{
|
{
|
||||||
mtx.vin.push_back(CTxIn(txid,vout,CScript()));
|
mtx.vin.push_back(CTxIn(txid,vout,CScript()));
|
||||||
nValue = out.tx->vout[out.i].nValue;
|
nValue = out.tx->vout[out.i].nValue;
|
||||||
|
|||||||
@@ -119,6 +119,13 @@ void *dicefinish(void *_ptr)
|
|||||||
if ( duplicate == 0 )
|
if ( duplicate == 0 )
|
||||||
{
|
{
|
||||||
CTransaction tx,bettx; uint256 txid,hashBlock; char str[65]; int32_t result;
|
CTransaction tx,bettx; uint256 txid,hashBlock; char str[65]; int32_t result;
|
||||||
|
for (i=0; i<10; i++)
|
||||||
|
{
|
||||||
|
if ( myGettxout(ptr->bettxid,0) != 0 )
|
||||||
|
break;
|
||||||
|
fprintf(stderr,".");
|
||||||
|
sleep(3);
|
||||||
|
}
|
||||||
res = DiceWinLoseTimeout(&result,0,name,ptr->fundingtxid,ptr->bettxid,ptr->iswin);
|
res = DiceWinLoseTimeout(&result,0,name,ptr->fundingtxid,ptr->bettxid,ptr->iswin);
|
||||||
if ( result != 0 && res.empty() == 0 && res.size() > 64 && is_hexstr((char *)res.c_str(),0) > 64 )
|
if ( result != 0 && res.empty() == 0 && res.size() > 64 && is_hexstr((char *)res.c_str(),0) > 64 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1606,7 +1606,7 @@ bool GetAddressUnspent(uint160 addressHash, int type,
|
|||||||
uint64_t myGettxout(uint256 hash,int32_t n)
|
uint64_t myGettxout(uint256 hash,int32_t n)
|
||||||
{
|
{
|
||||||
CCoins coins;
|
CCoins coins;
|
||||||
//LOCK2(cs_main,mempool.cs);
|
LOCK2(cs_main,mempool.cs);
|
||||||
CCoinsViewMemPool view(pcoinsTip, mempool);
|
CCoinsViewMemPool view(pcoinsTip, mempool);
|
||||||
if (!view.GetCoins(hash, coins))
|
if (!view.GetCoins(hash, coins))
|
||||||
return(0);
|
return(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user