Remove old SaplingNote() constructor

This commit is contained in:
therealyingtong 2020-07-04 18:20:37 +08:00
parent 31020d6fc9
commit 119bae082c
3 changed files with 2 additions and 5 deletions

View File

@ -44,7 +44,7 @@ TEST(SaplingNote, TestVectors)
uint256 nf(v_nf);
// Test commitment
SaplingNote note = SaplingNote(diversifier, pk_d, v, r);
SaplingNote note = SaplingNote(diversifier, pk_d, v, r, Zip212Enabled::BeforeZip212);
ASSERT_EQ(note.cmu().get(), cm);
// Test nullifier

View File

@ -1837,7 +1837,7 @@ BOOST_AUTO_TEST_CASE(rpc_z_mergetoaddress_parameters)
std::vector<MergeToAddressInputSproutNote> sproutNoteInputs =
{MergeToAddressInputSproutNote{JSOutPoint(), SproutNote(), 0, SproutSpendingKey()}};
std::vector<MergeToAddressInputSaplingNote> saplingNoteInputs =
{MergeToAddressInputSaplingNote{SaplingOutPoint(), SaplingNote({}, uint256(), 0, uint256()), 0, SaplingExpandedSpendingKey()}};
{MergeToAddressInputSaplingNote{SaplingOutPoint(), SaplingNote({}, uint256(), 0, uint256(), Zip212Enabled::BeforeZip212), 0, SaplingExpandedSpendingKey()}};
// Sprout and Sapling inputs -> throw
try {

View File

@ -77,9 +77,6 @@ public:
diversifier_t d;
uint256 pk_d;
SaplingNote(diversifier_t d, uint256 pk_d, uint64_t value, uint256 rseed)
: BaseNote(value), d(d), pk_d(pk_d), rseed(rseed), zip_212_enabled(Zip212Enabled::BeforeZip212) {}
SaplingNote(diversifier_t d, uint256 pk_d, uint64_t value, uint256 rseed, Zip212Enabled zip_212_enabled)
: BaseNote(value), d(d), pk_d(pk_d), rseed(rseed), zip_212_enabled(zip_212_enabled) {}