Skip to content

Commit

Permalink
Forward to Adam Back Ringsigs
Browse files Browse the repository at this point in the history
  • Loading branch information
rynomster committed Oct 23, 2015
1 parent 40629f0 commit 55c7af2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/qt/walletmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoinsAnon(const QList<SendCoinsRec
// -- in shadow

std::string sError;
if (!wallet->AddAnonInputs(RING_SIG_1, nTotalOut, nRingSize, vecSend, vecChange, wtxNew, nFeeRequired, false, sError))
if (!wallet->AddAnonInputs(RING_SIG_2, nTotalOut, nRingSize, vecSend, vecChange, wtxNew, nFeeRequired, false, sError))
{
if ((nTotalOut + nFeeRequired) > nBalance) // FIXME: could cause collisions in the future
return SendCoinsReturn(AmountWithFeeExceedsBalance, nFeeRequired);
Expand Down
6 changes: 3 additions & 3 deletions src/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4796,7 +4796,7 @@ bool CWallet::SendAnonToAnon(CStealthAddress& sxAddress, int64_t nValue, int nRi

int64_t nFeeRequired;
std::string sError2;
if (!AddAnonInputs(RING_SIG_1, nValue, nRingSize, vecSend, vecChange, wtxNew, nFeeRequired, false, sError2))
if (!AddAnonInputs(RING_SIG_2, nValue, nRingSize, vecSend, vecChange, wtxNew, nFeeRequired, false, sError2))
{
LogPrintf("SendAnonToAnon() AddAnonInputs failed %s.\n", sError2.c_str());
sError = "AddAnonInputs() failed : " + sError2;
Expand Down Expand Up @@ -4905,7 +4905,7 @@ bool CWallet::SendAnonToSdc(CStealthAddress& sxAddress, int64_t nValue, int nRin

int64_t nFeeRequired;
std::string sError2;
if (!AddAnonInputs(RING_SIG_1, nValue, nRingSize, vecSend, vecChange, wtxNew, nFeeRequired, false, sError2))
if (!AddAnonInputs(RING_SIG_2, nValue, nRingSize, vecSend, vecChange, wtxNew, nFeeRequired, false, sError2))
{
LogPrintf("SendAnonToSdc() AddAnonInputs failed %s.\n", sError2.c_str());
sError = "AddAnonInputs() failed: " + sError2;
Expand Down Expand Up @@ -5202,7 +5202,7 @@ bool CWallet::EstimateAnonFee(int64_t nValue, int nRingSize, std::string& sNarr,
};

int64_t nFeeRequired;
if (!AddAnonInputs(RING_SIG_1, nValue, nRingSize, vecSend, vecChange, wtxNew, nFeeRequired, true, sError))
if (!AddAnonInputs(RING_SIG_2, nValue, nRingSize, vecSend, vecChange, wtxNew, nFeeRequired, true, sError))
{
LogPrintf("EstimateAnonFee() AddAnonInputs failed %s.\n", sError.c_str());
sError = "AddAnonInputs() failed.";
Expand Down

0 comments on commit 55c7af2

Please sign in to comment.