diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-25 21:57:49 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-25 21:58:12 +0800 |
commit | ff5578fc715262cd8ae62e7d0f961a6e977a8727 (patch) | |
tree | 41e4ae3d9e2ebda853bf68f0746dfbc35a534c40 /Godeps/_workspace/src/github.com/ethereum/ethash/test/c | |
parent | a2e3bf6f3002e9914f56e08b1d6e323409ff3b4f (diff) | |
download | go-tangerine-ff5578fc715262cd8ae62e7d0f961a6e977a8727.tar.gz go-tangerine-ff5578fc715262cd8ae62e7d0f961a6e977a8727.tar.zst go-tangerine-ff5578fc715262cd8ae62e7d0f961a6e977a8727.zip |
updated ethash
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/ethash/test/c')
-rw-r--r-- | Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp b/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp index 8c854ecbd..21cb251fc 100644 --- a/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp +++ b/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp @@ -17,7 +17,7 @@ #include <boost/test/unit_test.hpp> #include <iostream> -std::string bytesToHexString(const uint8_t *str, const uint32_t s) { +std::string bytesToHexString(const uint8_t *str, const size_t s) { std::ostringstream ret; for (int i = 0; i < s; ++i) @@ -80,11 +80,9 @@ BOOST_AUTO_TEST_CASE(ethash_params_init_genesis_check) { BOOST_AUTO_TEST_CASE(ethash_params_init_genesis_calcifide_check) { ethash_params params; - BOOST_REQUIRE_MESSAGE(ethash_params_init(¶ms, 0), - "Params could not be initialized"); - const uint32_t - expected_full_size = 1073739904, - expected_cache_size = 16776896; + ethash_params_init(¶ms, 0); + const uint32_t expected_full_size = 1073739904; + const uint32_t expected_cache_size = 16776896; BOOST_REQUIRE_MESSAGE(params.full_size == expected_full_size, "\nexpected: " << expected_cache_size << "\n" << "actual: " << params.full_size << "\n"); |