diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-04-14 19:30:16 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-04-14 19:29:52 +0200 |
commit | fad6d4f952373690ef16ce27b0926c0ab762066a (patch) | |
tree | 8c2d5b48e558cd69dc5e3ddbf7ffb7aad4cb8c30 /src/test/denialofservice_tests.cpp | |
parent | fa456ccb2287b2a1a4eb7224b424f12fe59302e9 (diff) | |
download | bitcoin-fad6d4f952373690ef16ce27b0926c0ab762066a.tar.xz |
Remove not needed ArithToUint256 roundtrips in tests
Diffstat (limited to 'src/test/denialofservice_tests.cpp')
-rw-r--r-- | src/test/denialofservice_tests.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/denialofservice_tests.cpp b/src/test/denialofservice_tests.cpp index f03ff5ba3a..441b2f773e 100644 --- a/src/test/denialofservice_tests.cpp +++ b/src/test/denialofservice_tests.cpp @@ -4,7 +4,6 @@ // Unit tests for denial-of-service detection/prevention code -#include <arith_uint256.h> #include <banman.h> #include <chainparams.h> #include <net.h> @@ -464,7 +463,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans) // ecdsa_signature_parse_der_lax are executed during this test. // Specifically branches that run only when an ECDSA // signature's R and S values have leading zeros. - g_insecure_rand_ctx = FastRandomContext(ArithToUint256(arith_uint256(33))); + g_insecure_rand_ctx = FastRandomContext{uint256{33}}; TxOrphanageTest orphanage; CKey key; |