diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-23 13:24:26 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-17 16:12:47 +0000 |
commit | 55c2845d1a6d36e2a8686b2d1afb2d38a78bbccb (patch) | |
tree | 6ed271857eb7ae3270705ee940ef21e785dbcd0c /tests/core_tests/multisig.h | |
parent | wallet: factor multisig info parsing (diff) | |
download | monero-55c2845d1a6d36e2a8686b2d1afb2d38a78bbccb.tar.xz |
core_tests: multisig test now tests multiple inputs
Diffstat (limited to 'tests/core_tests/multisig.h')
-rw-r--r-- | tests/core_tests/multisig.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/core_tests/multisig.h b/tests/core_tests/multisig.h index 735c3b73d..62a1c6a35 100644 --- a/tests/core_tests/multisig.h +++ b/tests/core_tests/multisig.h @@ -69,7 +69,7 @@ struct gen_multisig_tx_validation_base : public test_chain_unit_base return true; } - bool generate_with(std::vector<test_event_entry>& events, int mixin, + bool generate_with(std::vector<test_event_entry>& events, size_t inputs, size_t mixin, uint64_t amount_paid, bool valid, size_t threshold, size_t total, size_t creator, std::vector<size_t> signers, const std::function<void(std::vector<cryptonote::tx_source_entry> &sources, std::vector<cryptonote::tx_destination_entry> &destinations)> &pre_tx, @@ -95,6 +95,12 @@ struct gen_multisig_tx_valid_22_1_2: public gen_multisig_tx_validation_base }; template<> struct get_test_options<gen_multisig_tx_valid_22_1_2>: public get_test_options<gen_multisig_tx_validation_base> {}; +struct gen_multisig_tx_valid_22_1_2_many_inputs: public gen_multisig_tx_validation_base +{ + bool generate(std::vector<test_event_entry>& events) const; +}; +template<> struct get_test_options<gen_multisig_tx_valid_22_1_2_many_inputs>: public get_test_options<gen_multisig_tx_validation_base> {}; + struct gen_multisig_tx_valid_22_2_1: public gen_multisig_tx_validation_base { bool generate(std::vector<test_event_entry>& events) const; @@ -141,8 +147,14 @@ struct gen_multisig_tx_valid_45_1_234: public gen_multisig_tx_validation_base { bool generate(std::vector<test_event_entry>& events) const; }; - template<> struct get_test_options<gen_multisig_tx_valid_45_1_234>: public get_test_options<gen_multisig_tx_validation_base> {}; + +struct gen_multisig_tx_valid_45_4_135_many_inputs: public gen_multisig_tx_validation_base +{ + bool generate(std::vector<test_event_entry>& events) const; +}; +template<> struct get_test_options<gen_multisig_tx_valid_45_4_135_many_inputs>: public get_test_options<gen_multisig_tx_validation_base> {}; + struct gen_multisig_tx_valid_89_3_1245789: public gen_multisig_tx_validation_base { bool generate(std::vector<test_event_entry>& events) const; |