git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
3a6e468
)
Fix miner_test unit test bug
author
Gavin Andresen
<gavinandresen@gmail.com>
Wed, 5 Oct 2011 18:33:49 +0000 (14:33 -0400)
committer
Gavin Andresen
<gavinandresen@gmail.com>
Wed, 5 Oct 2011 18:33:49 +0000 (14:33 -0400)
src/test/miner_tests.cpp
patch
|
blob
|
history
diff --git
a/src/test/miner_tests.cpp
b/src/test/miner_tests.cpp
index
e773542
..
8fc5347
100644
(file)
--- 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");