diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-07-26 10:21:28 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-11 13:38:18 +0000 |
commit | 6526d87f17a153a6a7f9f1e81a53b113c20e5f3b (patch) | |
tree | 8de15cde5ac705d8b5aa10168671aa535253b8df /tests/core_tests/bulletproofs.h | |
parent | multiexp: fix maxscalar off by one (diff) | |
download | monero-6526d87f17a153a6a7f9f1e81a53b113c20e5f3b.tar.xz |
core_tests: add a test for a tx with empty bulletproof
Diffstat (limited to 'tests/core_tests/bulletproofs.h')
-rw-r--r-- | tests/core_tests/bulletproofs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/core_tests/bulletproofs.h b/tests/core_tests/bulletproofs.h index 13faa3493..c3a7db2c7 100644 --- a/tests/core_tests/bulletproofs.h +++ b/tests/core_tests/bulletproofs.h @@ -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; |