This commit is contained in:
dimxy
2019-04-15 22:37:26 +05:00
parent 505619e202
commit b7756c071b

View File

@@ -495,7 +495,6 @@ int64_t prices_batontxid(uint256 &batontxid,CTransaction bettx,uint256 bettxid)
} }
} }
return(addedbets); return(addedbets);
} }
@@ -548,7 +547,7 @@ UniValue PricesAddFunding(int64_t txfee, uint256 bettxid, int64_t amount)
mypk = pubkey2pk(Mypubkey()); mypk = pubkey2pk(Mypubkey());
pricespk = GetUnspendable(cp, 0); pricespk = GetUnspendable(cp, 0);
GetCCaddress(cp, myaddr, mypk); GetCCaddress(cp, myaddr, mypk);
if (AddNormalinputs(mtx, mypk, amount + txfee, 64) >= amount + txfee) if (AddNormalinputs(mtx, mypk, amount + 2*txfee, 64) >= amount + 2*txfee)
{ {
if (prices_batontxid(batontxid, bettx, bettxid) >= 0) if (prices_batontxid(batontxid, bettx, bettxid) >= 0)
{ {