Commit graph

11 commits

Author SHA1 Message Date
Jeff Garzik
98de751416 sha*.c: remove debug statement, which is redundant to hashmeter output 2011-02-04 02:55:55 -05:00
Jeff Garzik
714c0fd7c9 Continue scanhash, even if high 32 bits are zero.
Previously, we would stop the scan if the high 32 bits of the hash were zero,
as a quick shortcut for testing the full hash.  If this quick test succeeded,
we would pass the work to the server for full validation.

Change this logic to perform full validation inside minerd, so that work may
be resumed more quickly if hash > target.
2011-02-03 00:46:55 -05:00
Jeff Garzik
c68ffb30dd Display proof-of-work hash when one is discovered 2011-02-02 18:47:04 -05:00
Jeff Garzik
0b67740707 Pass max-nonce as arg to each sha256 algo.
Should be an equivalent transformation, with no behavior changes.
2011-01-29 00:56:24 -05:00
Jeff Garzik
970e74c07d Move 32-bit swap code into miner.h, for sharing. 2010-12-26 23:37:58 -05:00
Jeff Garzik
d88648dd39 sha256_via: ensure that found nonce is copied back into output data buffer
Also, some minor cleanups, removing unused args.
2010-12-23 20:21:00 -05:00
Jeff Garzik
d363a1d68d sha256_via: ensure proper data area is fully checksummed 2010-12-19 21:37:30 -05:00
Jeff Garzik
6b5fb469cc sha256_via: align tmp_hash1 to 128, to avoid stack clobber
Reported by lfm
2010-12-06 00:57:48 -05:00
Jeff Garzik
339ddf4d75 Move sha256_generic into its own .o build output. Const-ify midstate param. 2010-11-27 04:31:32 -05:00
Jeff Garzik
eeea340b17 sha256_via: add further comments on byte-swapping work 2010-11-27 03:45:47 -05:00
Jeff Garzik
e2eeaaf75b Add experimental (read: probably broken) VIA padlock support. 2010-11-27 01:29:56 -05:00