aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/block_validation.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-08-14 21:12:11 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-08-21 12:36:53 +0000
commit844fb4e940478ca0ddf31115018326d667edc549 (patch)
treea851b659a5daf2b900eea6db65399eb9aaa8bcc8 /tests/core_tests/block_validation.h
parentMerge pull request #6586 (diff)
downloadmonero-844fb4e940478ca0ddf31115018326d667edc549.tar.xz
enforce claiming maximum coinbase amount
Claiming a slightly lesser amount does not yield the size gains that were seen pre rct, so this closes a fingerprinting vector
Diffstat (limited to 'tests/core_tests/block_validation.h')
-rw-r--r--tests/core_tests/block_validation.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/core_tests/block_validation.h b/tests/core_tests/block_validation.h
index 39eba0829..0dd4e145c 100644
--- a/tests/core_tests/block_validation.h
+++ b/tests/core_tests/block_validation.h
@@ -218,3 +218,15 @@ struct get_test_options<gen_block_late_v1_coinbase_tx> {
hard_forks, 0
};
};
+
+struct gen_block_low_coinbase : public gen_block_verification_base<1>
+{
+ bool generate(std::vector<test_event_entry>& events) const;
+};
+template<>
+struct get_test_options<gen_block_low_coinbase> {
+ const std::pair<uint8_t, uint64_t> hard_forks[3] = {std::make_pair(1, 0), std::make_pair(HF_VERSION_EXACT_COINBASE, 1), std::make_pair(0, 0)};
+ const cryptonote::test_options test_options = {
+ hard_forks, 0
+ };
+};