Commit graph

63 commits

Author SHA1 Message Date
pooler 46e919f93c Add basic Segwit support 2017-04-28 12:49:35 +02:00
pooler 9373a5c433 Add optimized PowerPC code 2015-02-25 14:06:40 +01:00
pooler be1b725270 Add support for scrypt(N, 1, 1) 2014-05-25 19:14:54 +02:00
pooler a5430f73e1 Add a configure option to disable assembly code 2014-05-16 16:39:04 +02:00
pooler b01f8be868 Allow loading multiple configuration files 2014-05-10 11:50:39 +02:00
pooler 30fae0c342 Minimal getblocktemplate support 2014-05-09 10:33:06 +02:00
pooler 42a002c741 Add an option to ignore redirection requests 2014-04-16 10:58:05 +02:00
pooler 9aa776cf94 Add a flags argument to json_rpc_call() 2014-04-14 14:23:47 +02:00
pooler 93120a697d Include inttypes.h instead of stdint.h
stdint.h is unavailable on some systems, such as Solaris 8
2013-07-12 18:41:47 +02:00
pooler e878267239 Add AVX2-enabled functions for x86-64 2013-07-05 18:27:49 +02:00
pooler 805ea94a4d Merge commit 'b6f26e1' from martinwguy/master
Add "cert" option for rpc server's self-signed SSL certificate
2013-06-13 21:50:47 +02:00
pooler ee7b535ea6 Add Stratum support 2013-06-09 01:13:28 +02:00
Martin Guy b6f26e1acc Add "cert" option for rpc server's self-signed SSL certificate
When minerd is used across the internet, the server's rpc userpass
travel unexcrypted, allowing anyone en route to copy them and
empty the server's wallet. Using https: would prevent this
but minerd's SSL connection fails on self-signed certificates.

This change adds a "-cert file" option (cert:"file" in minerd.conf)
to tell minerd the filename of the server's self-signed certificate.
2013-06-08 15:56:28 +02:00
pooler 3419ca2607 Add optimized ARM NEON code for scrypt and SHA-256d 2012-08-04 18:21:34 +02:00
pooler 1b4d317966 Fix redefinition of alloca when compiling with MinGW-w64 2012-06-05 00:02:36 +02:00
pooler ff69f18995 Rename time_lock to avoid name conflict on AIX 2012-04-16 00:37:09 +02:00
pooler e0867338ab Check for <sys/endian.h> functions in configure
On NetBSD stdlib.h indirectly includes sys/endian.h, causing the
(be|le)32(enc|dec) functions to be already defined.
2012-04-08 00:33:56 +02:00
pooler 9093f84686 Add optimized SHA-256d implementation for x86 2012-03-31 17:02:01 +02:00
pooler e52982ab7f Drop unused 2-way scrypt 2012-03-23 16:35:21 +01:00
pooler ed3d1c94f9 Reimplement SHA-256d 2012-03-21 23:07:56 +01:00
pooler b961766f4d Move SHA-2 code to separate files 2012-03-12 13:32:11 +01:00
pooler 40fc3d06f9 Minor cleanups 2012-03-10 23:29:11 +01:00
pooler c96b468d1c Keep work data in host byte order 2012-03-10 13:37:33 +01:00
pooler e560d53b76 Add 4-way SHA-256 implementation for x86-64 2012-02-28 18:10:26 +01:00
pooler 1f15a1f672 Add proxy support 2012-02-26 01:34:58 +01:00
pooler d26b0d8b81 Version 2.1.2
- Do not submit work that is known to be stale
- Allow miner threads to ask for new work if the current one is at least
  45 seconds old and long polling is enabled
- Refresh work when long polling times out
- Modify x86-64 code to make it compatible with older versions of
  binutils
2012-01-26 14:31:07 +01:00
pooler 14f953e0f8 Handle network errors properly 2012-01-21 00:31:51 +01:00
pooler 0426d3ace0 Drastically increase getwork efficiency 2012-01-19 16:25:01 +01:00
pooler 36225b4206 Some more optimization 2011-12-24 12:22:06 +01:00
pooler 45024f12f1 Add configurable timeout 2011-12-04 22:55:30 +01:00
Art Forz 383482e0a6 Rip out sha256 algos 2011-10-01 13:20:36 +02:00
Art Forz ac92e27c8e add scrypt function 2011-09-20 12:20:26 +02:00
ckolivas 8a832eeab5 Linux + x86_64 optimisations.
Add likely() macro.
Optimise a few obvious code paths with likely/unlikely.
Change algo to sse2_amd64 by default.
Move priority change to worker threads only.
Detect number of CPUs and set default number of threads == CPUs.
Add scheduling policy change to worker threads to SCHED_IDLE first and fallback to SCHED_BATCH on linux.
Don't error when failing to set priority.
Add CPU affinity and bind worker threads to CPUs when number of threads is a multiple of number of CPUs.
Update NEWS with changes.
2011-06-09 11:45:06 +10:00
Glenn Francis Murray 180b99f2d9 OSX Support
Derived from xorg source
http://cgit.freedesktop.org/xorg/xserver/tree/GL/glx/glxbyteorder.h?id=cdf6b15f039c4905d8d54152153b0a3ecd7aba55;id2=415e49b940bba2d08870db410ebb47d2add5d836
2011-05-11 04:41:11 +10:00
Jeff Garzik 2fd9d54443 Convert remaining [f]print to applog().
Also, remove a few superfluous printouts.
2011-03-21 04:02:13 -04:00
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 24afd61775 Introduce more standardized logging (incl. optional syslog).
Also, improve portability of alloca.
2011-03-18 17:24:16 -04:00
Jeff Garzik 7a87bee999 Add long polling support 2011-03-18 02:53:13 -04:00
Jeff Garzik 33e5b54928 miner.h: pad out work_restart to max likely cache line size 2011-03-17 23:19:43 -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 0258fae450 Fix Windows build, that broke with yasm integration 2011-03-14 23:36:28 -04:00
Jeff Garzik 4f7a51e9ed Move all RPC I/O to separate thread. 2011-03-14 23:17:34 -04:00
Jeff Garzik 6b19b15aa9 Fix warnings in sse2_64 implementation. 2011-03-07 00:23:12 -05:00
Mark Crichton 96d2287c72 X86_64 SSE2 support for Linux 2011-03-06 23:49:00 -05:00
Jeff Garzik 1083e15c47 Mark hash success as unlikely, using __builtin_expect() intrinsic 2011-02-17 01:22:55 -05:00
Jeff Garzik 9f3472ad19 Use bswap_32 from byteswap.h, if __builtin_bswap() is not available 2011-02-10 00:52:22 -05:00
Jeff Garzik c0935a9489 Re-use CURL object, thereby caching DNS and HTTP connections where possible. 2011-02-10 00:41:44 -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