aboutsummaryrefslogtreecommitdiff
path: root/src/test/txvalidationcache_tests.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2018-09-30 15:38:37 +0100
committerRoss Nicoll <[email protected]>2019-04-03 05:16:26 +0000
commit8ef665d5e4765366b1c47a2ce7054d783ccca9d0 (patch)
treeeb4deddbdbf40cc6e328dc88d3ae21d76332da9a /src/test/txvalidationcache_tests.cpp
parentAdd Dogecoin block subsidy calculations. (diff)
downloaddiscoin-8ef665d5e4765366b1c47a2ce7054d783ccca9d0.tar.xz
discoin-8ef665d5e4765366b1c47a2ce7054d783ccca9d0.zip
Replace test data with Dogecoin values
Replace test data with Dogecoin equivalents in the folowing tests: * base58 * bip32 * keys * miner * pow * wallet Replace RPC and deterministic signatures in unit tests with Dogecoin values. While conventionally I'd use an alternative implementation for these, as RFC 6979 compliant signature generation isn't terribly common, and there's no reason to suspect we've modified this code, I'm going to assert that it's good enough to test that the code doesn't provide different values. Disabled Bitcoin PoW tests, but left code in place to simplify later merges. These are replaced by the Dogecoin PoW tests.
Diffstat (limited to 'src/test/txvalidationcache_tests.cpp')
-rw-r--r--src/test/txvalidationcache_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/txvalidationcache_tests.cpp b/src/test/txvalidationcache_tests.cpp
index 2bf835a75..e7a8e47ca 100644
--- a/src/test/txvalidationcache_tests.cpp
+++ b/src/test/txvalidationcache_tests.cpp
@@ -33,7 +33,7 @@ ToMemPool(const CMutableTransaction& tx)
nullptr /* plTxnReplaced */, true /* bypass_limits */, 0 /* nAbsurdFee */);
}
-BOOST_FIXTURE_TEST_CASE(tx_mempool_block_doublespend, TestChain100Setup)
+BOOST_FIXTURE_TEST_CASE(tx_mempool_block_doublespend, TestChain240Setup)
{
// Make sure skipping validation of transactions that were
// validated going into the memory pool does not allow
@@ -141,7 +141,7 @@ static void ValidateCheckInputsForAllFlags(const CTransaction &tx, uint32_t fail
}
}
-BOOST_FIXTURE_TEST_CASE(checkinputs_test, TestChain100Setup)
+BOOST_FIXTURE_TEST_CASE(checkinputs_test, TestChain240Setup)
{
// Test that passing CheckInputs with one set of script flags doesn't imply
// that we would pass again with a different set of flags.