From 2ad0b7bfe2f0d8a39b7f843aa012a26ba7b61d76 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 8 Sep 2016 16:40:31 -0700 Subject: [PATCH] Use zcash constants --- src/wallet/asyncrpcoperation_sendmany.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wallet/asyncrpcoperation_sendmany.cpp b/src/wallet/asyncrpcoperation_sendmany.cpp index 14194a4e..2ef096d5 100644 --- a/src/wallet/asyncrpcoperation_sendmany.cpp +++ b/src/wallet/asyncrpcoperation_sendmany.cpp @@ -327,7 +327,7 @@ bool AsyncRPCOperation_sendmany::main_impl() { info.vpub_old = 0; info.vpub_new = 0; int n = 0; - while (n++<2 && zOutputsDeque.size() > 0) { + while (n++ 0) { SendManyRecipient smr = zOutputsDeque.front(); std::string address = std::get<0>(smr); CAmount value = std::get<1>(smr); @@ -384,7 +384,7 @@ bool AsyncRPCOperation_sendmany::main_impl() { info.vpub_new = 0; std::vector outPoints; int n = 0; - while (n++ < 2 && taddrTargetAmount > 0) { + while (n++ < ZC_NUM_JS_INPUTS && taddrTargetAmount > 0) { SendManyInputJSOP o = zInputsDeque.front(); JSOutPoint outPoint = std::get<0>(o); Note note = std::get<1>(o); @@ -528,7 +528,7 @@ bool AsyncRPCOperation_sendmany::main_impl() { std::vector vOutPoints; uint256 inputAnchor; int numInputsNeeded = (jsChange>0) ? 1 : 0; - while (numInputsNeeded++ < 2 && zInputsDeque.size() > 0) { + while (numInputsNeeded++ < ZC_NUM_JS_INPUTS && zInputsDeque.size() > 0) { SendManyInputJSOP t = zInputsDeque.front(); JSOutPoint jso = std::get<0>(t); Note note = std::get<1>(t);