txfee
This commit is contained in:
@@ -464,7 +464,7 @@ int64_t prices_costbasis(CTransaction bettx)
|
||||
}
|
||||
|
||||
// calculates added bet total, returns the last baton txid
|
||||
int64_t prices_batontxid(uint256 &batontxid,CTransaction bettx,uint256 bettxid)
|
||||
int64_t prices_batontxid(uint256 &batontxid, CTransaction bettx, uint256 bettxid)
|
||||
{
|
||||
int64_t addedbets = 0;
|
||||
int32_t vini;
|
||||
@@ -495,7 +495,6 @@ int64_t prices_batontxid(uint256 &batontxid,CTransaction bettx,uint256 bettxid)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return(addedbets);
|
||||
}
|
||||
|
||||
@@ -548,7 +547,7 @@ UniValue PricesAddFunding(int64_t txfee, uint256 bettxid, int64_t amount)
|
||||
mypk = pubkey2pk(Mypubkey());
|
||||
pricespk = GetUnspendable(cp, 0);
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user