diff options
| author | Gavin Andresen <[email protected]> | 2011-10-05 14:33:49 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-10-05 14:33:49 -0400 |
| commit | 9e5322d23aec76413313825e377985ae63c433a5 (patch) | |
| tree | 280a4f4f93b11fd6d2a77e155d19dabe68fe5851 /src/test/miner_tests.cpp | |
| parent | Merge branch 'listsinceblock' of https://github.com/cdhowie/bitcoin (diff) | |
| download | discoin-9e5322d23aec76413313825e377985ae63c433a5.tar.xz discoin-9e5322d23aec76413313825e377985ae63c433a5.zip | |
Fix miner_test unit test bug
Diffstat (limited to 'src/test/miner_tests.cpp')
| -rw-r--r-- | src/test/miner_tests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/miner_tests.cpp b/src/test/miner_tests.cpp index e773542d7..8fc534762 100644 --- a/src/test/miner_tests.cpp +++ b/src/test/miner_tests.cpp @@ -12,20 +12,20 @@ BOOST_AUTO_TEST_CASE(sha256transform_equality) unsigned char pstate[32]; - unsigned char pinput[32]; + unsigned char pinput[64]; int i; for (i = 0; i < 32; i++) { pinput[i] = i; - pstate[i] = 0; + pinput[i+32] = 0; } uint256 hash; SHA256Transform(&hash, pinput, pSHA256InitState); - BOOST_TEST_MESSAGE(hash.GetHex()); + BOOST_TEST_MESSAGE(hash.GetHex()); uint256 hash_reference("0x2df5e1c65ef9f8cde240d23cae2ec036d31a15ec64bc68f64be242b1da6631f3"); |