mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-03-02 09:06:01 +00:00
Aim for current block, not depth + 1
This commit is contained in:
parent
c8b586be1b
commit
b2d001834a
@ -1220,10 +1220,8 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend,
|
||||
BOOST_FOREACH(PAIRTYPE(const CWalletTx*, unsigned int) pcoin, setCoins)
|
||||
{
|
||||
int64 nCredit = pcoin.first->vout[pcoin.second].nValue;
|
||||
//The priority after the next block (depth+1) is used instead of the current,
|
||||
//reflecting an assumption the user would accept a bit more delay for
|
||||
//a chance at a free transaction.
|
||||
dPriority += (double)nCredit * (pcoin.first->GetDepthInMainChain()+1);
|
||||
// Dogecoin: Set priority to current block
|
||||
dPriority += (double)nCredit * pcoin.first->GetDepthInMainChain();
|
||||
}
|
||||
|
||||
int64 nChange = nValueIn - nValue - nFeeRet;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user