aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-08-29 16:57:12 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-10 09:04:18 +0000
commit44439c32088dc684d686a392acf807f12ca0e0e9 (patch)
treebbf9e3da0fcf19c529061d540c26c2a0e6270e22 /tests
parentblockchain_blackball: more optimizations (diff)
downloadmonero-44439c32088dc684d686a392acf807f12ca0e0e9.tar.xz
record blackballs as amount/offset, and add export ability
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/ringdb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit_tests/ringdb.cpp b/tests/unit_tests/ringdb.cpp
index 9b842569a..416ae0890 100644
--- a/tests/unit_tests/ringdb.cpp
+++ b/tests/unit_tests/ringdb.cpp
@@ -59,17 +59,17 @@ static crypto::key_image generate_key_image()
return key_image;
}
-static crypto::public_key generate_output()
+static std::pair<uint64_t, uint64_t> generate_output()
{
- return rct::rct2pk(rct::scalarmultBase(rct::skGen()));
+ return std::make_pair(rand(), rand());
}
static const crypto::chacha_key KEY_1 = generate_chacha_key();
static const crypto::chacha_key KEY_2 = generate_chacha_key();
static const crypto::key_image KEY_IMAGE_1 = generate_key_image();
-static const crypto::public_key OUTPUT_1 = generate_output();
-static const crypto::public_key OUTPUT_2 = generate_output();
+static const std::pair<uint64_t, uint64_t> OUTPUT_1 = generate_output();
+static const std::pair<uint64_t, uint64_t> OUTPUT_2 = generate_output();
class RingDB: public tools::ringdb
{