Move new coins tests to within coins_tests test suite.
This commit is contained in:
@@ -140,6 +140,18 @@ public:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void appendRandomCommitment(ZCIncrementalMerkleTree &tree)
|
||||||
|
{
|
||||||
|
libzcash::SpendingKey k = libzcash::SpendingKey::random();
|
||||||
|
libzcash::PaymentAddress addr = k.address();
|
||||||
|
|
||||||
|
libzcash::Note note(addr.a_pk, 0, uint256(), uint256());
|
||||||
|
|
||||||
|
tree.append(note.cm());
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOST_FIXTURE_TEST_SUITE(coins_tests, BasicTestingSetup)
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(serials_test)
|
BOOST_AUTO_TEST_CASE(serials_test)
|
||||||
{
|
{
|
||||||
CCoinsViewTest base;
|
CCoinsViewTest base;
|
||||||
@@ -164,16 +176,6 @@ BOOST_AUTO_TEST_CASE(serials_test)
|
|||||||
BOOST_CHECK(!cache3.GetSerial(myserial));
|
BOOST_CHECK(!cache3.GetSerial(myserial));
|
||||||
}
|
}
|
||||||
|
|
||||||
void appendRandomCommitment(ZCIncrementalMerkleTree &tree)
|
|
||||||
{
|
|
||||||
libzcash::SpendingKey k = libzcash::SpendingKey::random();
|
|
||||||
libzcash::PaymentAddress addr = k.address();
|
|
||||||
|
|
||||||
libzcash::Note note(addr.a_pk, 0, uint256(), uint256());
|
|
||||||
|
|
||||||
tree.append(note.cm());
|
|
||||||
}
|
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(anchors_flush_test)
|
BOOST_AUTO_TEST_CASE(anchors_flush_test)
|
||||||
{
|
{
|
||||||
CCoinsViewTest base;
|
CCoinsViewTest base;
|
||||||
@@ -273,8 +275,6 @@ BOOST_AUTO_TEST_CASE(anchors_test)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FIXTURE_TEST_SUITE(coins_tests, BasicTestingSetup)
|
|
||||||
|
|
||||||
static const unsigned int NUM_SIMULATION_ITERATIONS = 40000;
|
static const unsigned int NUM_SIMULATION_ITERATIONS = 40000;
|
||||||
|
|
||||||
// This is a large randomized insert/remove simulation test on a variable-size
|
// This is a large randomized insert/remove simulation test on a variable-size
|
||||||
|
|||||||
Reference in New Issue
Block a user