Skip to content

Commit

Permalink
Merge pull request #59 from zerocurrencycoin/v3.1.0
Browse files Browse the repository at this point in the history
V3.1.0
  • Loading branch information
CryptoForge authored Mar 11, 2020
2 parents 63af2bd + e0b05d8 commit d2173df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/transaction_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ void TransactionBuilder::CreateJSDescriptions()
vpub_old += vjsout[n].value;
}

std::array<size_t, ZC_NUM_JS_INPUTS> inputMap;
std::array<size_t, ZC_NUM_JS_OUTPUTS> outputMap;
std::array<uint64_t, ZC_NUM_JS_INPUTS> inputMap;
std::array<uint64_t, ZC_NUM_JS_OUTPUTS> outputMap;
CreateJSDescription(vpub_old, 0, vjsin, vjsout, inputMap, outputMap);
}
return;
Expand Down Expand Up @@ -662,8 +662,8 @@ void TransactionBuilder::CreateJSDescriptions()
LogPrint("zrpcunsafe", "generating note for change (amount=%s)\n", FormatMoney(jsChange));
}

std::array<size_t, ZC_NUM_JS_INPUTS> inputMap;
std::array<size_t, ZC_NUM_JS_OUTPUTS> outputMap;
std::array<uint64_t, ZC_NUM_JS_INPUTS> inputMap;
std::array<uint64_t, ZC_NUM_JS_OUTPUTS> outputMap;
CreateJSDescription(vpub_old, vpub_new, vjsin, vjsout, inputMap, outputMap);

if (jsChange > 0) {
Expand All @@ -683,8 +683,8 @@ void TransactionBuilder::CreateJSDescription(
uint64_t vpub_new,
std::array<libzcash::JSInput, ZC_NUM_JS_INPUTS> vjsin,
std::array<libzcash::JSOutput, ZC_NUM_JS_OUTPUTS> vjsout,
std::array<size_t, ZC_NUM_JS_INPUTS>& inputMap,
std::array<size_t, ZC_NUM_JS_OUTPUTS>& outputMap)
std::array<uint64_t, ZC_NUM_JS_INPUTS>& inputMap,
std::array<uint64_t, ZC_NUM_JS_OUTPUTS>& outputMap)
{
LogPrint("zrpcunsafe", "CreateJSDescription: creating joinsplit at index %d (vpub_old=%s, vpub_new=%s, in[0]=%s, in[1]=%s, out[0]=%s, out[1]=%s)\n",
mtx.vJoinSplit.size(),
Expand Down
4 changes: 2 additions & 2 deletions src/transaction_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ class TransactionBuilder
uint64_t vpub_new,
std::array<libzcash::JSInput, ZC_NUM_JS_INPUTS> vjsin,
std::array<libzcash::JSOutput, ZC_NUM_JS_OUTPUTS> vjsout,
std::array<size_t, ZC_NUM_JS_INPUTS>& inputMap,
std::array<size_t, ZC_NUM_JS_OUTPUTS>& outputMap);
std::array<uint64_t, ZC_NUM_JS_INPUTS>& inputMap,
std::array<uint64_t, ZC_NUM_JS_OUTPUTS>& outputMap);
};

#endif /* TRANSACTION_BUILDER_H */

0 comments on commit d2173df

Please sign in to comment.