core_tests: add a test for a tx with empty bulletproof

This commit is contained in:
moneromooo-monero 2018-07-26 10:21:28 +01:00
parent a129bbd944
commit 6526d87f17
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 20 additions and 0 deletions

View file

@ -162,6 +162,12 @@ struct gen_bp_tx_invalid_not_enough_proofs : public gen_bp_tx_validation_base
};
template<> struct get_test_options<gen_bp_tx_invalid_not_enough_proofs>: public get_test_options<gen_bp_tx_validation_base> {};
struct gen_bp_tx_invalid_empty_proofs : public gen_bp_tx_validation_base
{
bool generate(std::vector<test_event_entry>& events) const;
};
template<> struct get_test_options<gen_bp_tx_invalid_empty_proofs>: public get_test_options<gen_bp_tx_validation_base> {};
struct gen_bp_tx_invalid_too_many_proofs : public gen_bp_tx_validation_base
{
bool generate(std::vector<test_event_entry>& events) const;