Jeff Garzik
23e9cf91f0
Ensure cpuminer-config.h is universally included, in *.c and *.h alike.
...
In miner.h, this fixes an alloca-definition-related warning.
For the other files, this is simply future-proofing/precaution.
2011-03-20 22:44:25 -04:00
Jeff Garzik
2d49a9a5d7
Introduce ability to interrupt hash scanners in the middle of scanning.
2011-03-17 22:02:28 -04:00
Jeff Garzik
cdb4cd9c8b
sha256_*.c: trim trailing whitespace
2011-03-14 21:48:15 -04:00
Jeff Garzik
1083e15c47
Mark hash success as unlikely, using __builtin_expect() intrinsic
2011-02-17 01:22:55 -05:00
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
339ddf4d75
Move sha256_generic into its own .o build output. Const-ify midstate param.
2010-11-27 04:31:32 -05:00
Jeff Garzik
822cf2cc45
sha256: Remove unused include arpa/inet.h
2010-11-25 03:51:04 -05:00
Jeff Garzik
e33abcdbe4
sha256: note about bitcoin input data
2010-11-24 18:45:56 -05:00
Jeff Garzik
b7201e9dec
sha256: Assume that input is already big endian.
2010-11-24 18:24:12 -05:00
Jeff Garzik
9599867d8b
Initial revision of CPU miner.
...
NOTE: non-functional (incorrectly thinks it finds solution, too quickly)
2010-11-23 23:33:20 -05:00