use more common syntax to make it clear that actually 6 confirmations are required for IX to work / +comments
This commit is contained in:
parent
6bd911bfca
commit
877405c8fb
@ -52,7 +52,8 @@ void ProcessMessageInstantX(CNode* pfrom, std::string& strCommand, CDataStream&
|
|||||||
int nTxAge = 0;
|
int nTxAge = 0;
|
||||||
BOOST_REVERSE_FOREACH(CTxIn i, tx.vin){
|
BOOST_REVERSE_FOREACH(CTxIn i, tx.vin){
|
||||||
nTxAge = GetInputAge(i);
|
nTxAge = GetInputAge(i);
|
||||||
if(nTxAge <= 5){
|
if(nTxAge < 6)
|
||||||
|
{
|
||||||
LogPrintf("ProcessMessageInstantX::txlreq - Transaction not found / too new: %d / %s\n", nTxAge, tx.GetHash().ToString().c_str());
|
LogPrintf("ProcessMessageInstantX::txlreq - Transaction not found / too new: %d / %s\n", nTxAge, tx.GetHash().ToString().c_str());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1252,8 +1252,8 @@ void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed, const
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
int nDepth = pcoin->GetDepthInMainChain(false);
|
int nDepth = pcoin->GetDepthInMainChain(false);
|
||||||
// do not use IX coins until we have at least 1 blockchain confirmation
|
// do not use IX for inputs that have less then 6 blockchain confirmations
|
||||||
if (useIX && nDepth <= 5)
|
if (useIX && nDepth < 6)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (unsigned int i = 0; i < pcoin->vout.size(); i++) {
|
for (unsigned int i = 0; i < pcoin->vout.size(); i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user