From b2d001834a3a1ed8c088bdcb3b910b982db40664 Mon Sep 17 00:00:00 2001 From: ummjackson Date: Sat, 22 Feb 2014 14:35:14 +1100 Subject: [PATCH] Aim for current block, not depth + 1 --- src/wallet.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index 22926a4a9..1984e36c6 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1220,10 +1220,8 @@ bool CWallet::CreateTransaction(const vector >& 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;