aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-03-14 13:35:41 +0200
committerRiccardo Spagni <ric@spagni.net>2018-03-14 13:35:41 +0200
commit67978b78ce649fa0bba1d825d77142c5cc7cc8ae (patch)
tree70bcc183e0e935b09050929e279d0e124ef05896 /tests
parentMerge pull request #3315 (diff)
parentfuzz_tests: set small subaddress lookahead for speed (diff)
downloadmonero-67978b78ce649fa0bba1d825d77142c5cc7cc8ae.tar.xz
Merge pull request #3337
91d97dd4 fuzz_tests: set small subaddress lookahead for speed (moneromooo-monero) 5f85cc7e wallet2: guard against overflowing of subaddress indices (moneromooo-monero)
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzz/cold-outputs.cpp1
-rw-r--r--tests/fuzz/cold-transaction.cpp1
-rw-r--r--tests/fuzz/signature.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/fuzz/cold-outputs.cpp b/tests/fuzz/cold-outputs.cpp
index 9aa9460d5..59b59810c 100644
--- a/tests/fuzz/cold-outputs.cpp
+++ b/tests/fuzz/cold-outputs.cpp
@@ -54,6 +54,7 @@ int ColdOutputsFuzzer::init()
try
{
wallet.init("");
+ wallet.set_subaddress_lookahead(1, 1);
wallet.generate("", "", spendkey, true, false);
}
catch (const std::exception &e)
diff --git a/tests/fuzz/cold-transaction.cpp b/tests/fuzz/cold-transaction.cpp
index d81092c82..da33dc318 100644
--- a/tests/fuzz/cold-transaction.cpp
+++ b/tests/fuzz/cold-transaction.cpp
@@ -55,6 +55,7 @@ int ColdTransactionFuzzer::init()
try
{
wallet.init("");
+ wallet.set_subaddress_lookahead(1, 1);
wallet.generate("", "", spendkey, true, false);
}
catch (const std::exception &e)
diff --git a/tests/fuzz/signature.cpp b/tests/fuzz/signature.cpp
index 2b8ffe465..7f22757b2 100644
--- a/tests/fuzz/signature.cpp
+++ b/tests/fuzz/signature.cpp
@@ -55,6 +55,7 @@ int SignatureFuzzer::init()
try
{
wallet.init("");
+ wallet.set_subaddress_lookahead(1, 1);
wallet.generate("", "", spendkey, true, false);
cryptonote::address_parse_info info;