Remove old SaplingNote() constructor
This commit is contained in:
parent
31020d6fc9
commit
119bae082c
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue