Refactoring: Rename class libzcash::Note to libzcash::SproutNote.
This commit is contained in:
@@ -38,7 +38,7 @@ CWalletTx GetValidReceive(ZCJoinSplit& params,
|
||||
libzcash::JSOutput(sk.address(), value)
|
||||
};
|
||||
|
||||
boost::array<libzcash::Note, 2> output_notes;
|
||||
boost::array<libzcash::SproutNote, 2> output_notes;
|
||||
|
||||
// Prepare JoinSplits
|
||||
uint256 rt;
|
||||
@@ -63,7 +63,7 @@ CWalletTx GetValidReceive(ZCJoinSplit& params,
|
||||
return wtx;
|
||||
}
|
||||
|
||||
libzcash::Note GetNote(ZCJoinSplit& params,
|
||||
libzcash::SproutNote GetNote(ZCJoinSplit& params,
|
||||
const libzcash::SpendingKey& sk,
|
||||
const CTransaction& tx, size_t js, size_t n) {
|
||||
ZCNoteDecryption decryptor {sk.receiving_key()};
|
||||
@@ -79,7 +79,7 @@ libzcash::Note GetNote(ZCJoinSplit& params,
|
||||
|
||||
CWalletTx GetValidSpend(ZCJoinSplit& params,
|
||||
const libzcash::SpendingKey& sk,
|
||||
const libzcash::Note& note, CAmount value) {
|
||||
const libzcash::SproutNote& note, CAmount value) {
|
||||
CMutableTransaction mtx;
|
||||
mtx.vout.resize(2);
|
||||
mtx.vout[0].nValue = value;
|
||||
@@ -105,7 +105,7 @@ CWalletTx GetValidSpend(ZCJoinSplit& params,
|
||||
} else if (note.value < value) {
|
||||
libzcash::SpendingKey dummykey = libzcash::SpendingKey::random();
|
||||
libzcash::PaymentAddress dummyaddr = dummykey.address();
|
||||
libzcash::Note dummynote(dummyaddr.a_pk, (value - note.value), uint256(), uint256());
|
||||
libzcash::SproutNote dummynote(dummyaddr.a_pk, (value - note.value), uint256(), uint256());
|
||||
tree.append(dummynote.cm());
|
||||
dummyin = libzcash::JSInput(tree.witness(), dummynote, dummykey);
|
||||
}
|
||||
@@ -123,7 +123,7 @@ CWalletTx GetValidSpend(ZCJoinSplit& params,
|
||||
libzcash::JSOutput() // dummy output
|
||||
};
|
||||
|
||||
boost::array<libzcash::Note, 2> output_notes;
|
||||
boost::array<libzcash::SproutNote, 2> output_notes;
|
||||
|
||||
// Prepare JoinSplits
|
||||
uint256 rt = tree.root();
|
||||
|
||||
Reference in New Issue
Block a user