Use uint64_t instead of size_t for serialized indices into tx.vjoinsplit

size_t has no guarantee of uniform size, and thus far has been serialized as a
uint64_t on supported platforms.
This commit is contained in:
Jack Grigg 2017-12-22 21:07:27 +00:00
parent d58ed91af0
commit 6c7930f688
No known key found for this signature in database
GPG Key ID: 665DBCD284F7DAFF
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ struct PaymentDisclosurePayload {
uint8_t version; // 0 = experimental, 1 = first production version, etc.
uint256 esk; // zcash/NoteEncryption.cpp
uint256 txid; // primitives/transaction.h
size_t js; // Index into CTransaction.vjoinsplit
uint64_t js; // Index into CTransaction.vjoinsplit
uint8_t n; // Index into JSDescription fields of length ZC_NUM_JS_OUTPUTS
libzcash::PaymentAddress zaddr; // zcash/Address.hpp
std::string message; // parameter to RPC call

View File

@ -159,7 +159,7 @@ public:
// Transaction hash
uint256 hash;
// Index into CTransaction.vjoinsplit
size_t js;
uint64_t js;
// Index into JSDescription fields of length ZC_NUM_JS_OUTPUTS
uint8_t n;