From 936da23d9707e035b7a1ed95aecba22bd2b01094 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Wed, 8 Oct 2014 08:20:28 -0700 Subject: [PATCH] fixed collateral bug --- src/darksend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/darksend.cpp b/src/darksend.cpp index 072829bfef..a7a5b1e2a1 100644 --- a/src/darksend.cpp +++ b/src/darksend.cpp @@ -442,7 +442,7 @@ bool CDarkSendPool::IsCollateralValid(const CTransaction& txCollateral){ } //collateral transactions are required to pay out DARKSEND_COLLATERAL as a fee to the miners - if(nValueOut-nValueIn < DARKSEND_COLLATERAL) { + if(nValueIn-nValueOut < DARKSEND_COLLATERAL) { if(fDebug) LogPrintf ("CDarkSendPool::IsCollateralValid - did not include enough fees in transaction %"PRI64d"\n%s\n", nValueOut-nValueIn, txCollateral.ToString().c_str()); return false; }