Commit Graph
2349 Commits
Author SHA1 Message Date
Dave Walker (Daviey) 8d3957c04b Fix segfault in HTTP API rebind
Previously with HTTP API enabled on brenchmarking run, it is possible
to cause a segfault due to an issue handling the m_httpd pointer and
rebinding.

  - Initialize m_httpd to nullptr to indicate when it's not in use.
  - Safely delete m_httpd in Api's destructor to prevent use-after-free
    issues.
  - Add checks to ensure m_httpd is not nullptr before usage in start,
    stop, and tick methods.
  - Log errors for HTTP server start failures to aid in debugging.

Fixes MoneroOcean/xmrig#120

Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2024-02-11 17:52:36 +00:00
XMRig cfbd8d26a0 Cleanup. 2024-01-17 00:31:16 +07:00
SChernykh d389507d23 Fixed Zephyr mining (OpenCL) 2024-01-13 20:14:08 +01:00
XMRig 67a9411405 Code style cleanup. 2023-12-29 21:17:19 +07:00
moneromooo-monero 70587844cc add support for townforge (monero fork using randomx) 2023-12-23 15:31:05 +00:00
XMRig 6f94c0b2de v6.21.1-dev 2023-11-23 21:19:36 +07:00
XMRig 9eb46d3910 v6.21.0 2023-11-23 20:40:58 +07:00
XMRig d79e9e9c30 v6.21.0-dev 2023-11-23 19:51:41 +07:00
SChernykh c32549b264 Zephyr solo mining: handle multiple outputs 2023-11-15 16:18:05 +01:00
SChernykh 41b6844e7d Updated pricing record size for Zephyr solo mining 2023-11-14 13:06:10 +01:00
SChernykh 87e18eccba Update sse2neon.h 2023-10-30 20:07:03 +01:00
SChernykh 68a90f7dfc ARM64 JIT: don't use x18 register
From https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms
> The platforms reserve register x18. Don’t use this register.

This PR fixes invalid hashes when running on Apple silicon with the latest macOS SDK.
2023-10-19 17:45:15 +02:00
XMRig 1d6709c516 Merge branch 'main' of https://github.com/JacksonZ03/xmrig into JacksonZ03-main 2023-10-09 15:14:50 +07:00
Jackson Zheng 603587eae1 Update cn_main_loop.asm
Found this line to be missing. I looked through the history and seemed like the original author of the commit missed it out.
2023-10-08 23:29:52 +01:00
Jackson Zheng a14bd600bf Update cn_main_loop.asm
I was scanning the code and found this line to be missing. Not sure if this was a mistake or if it was intentionally left out?
2023-10-08 23:12:58 +01:00
SChernykh 0a29198869 Added SNI option for TLS connections
Disabled by default, add `"sni": true,` to pool config to enable it.
2023-09-29 08:33:49 +02:00
SChernykh 43184ebae1 Add "built for OS/architecture/bits" to "ABOUT"
To make it more clear what binary it is on some XMRig screenshot.
2023-08-21 13:49:21 +02:00
XMRig be6afaa163 Fixed huge pages availability info on Linux. 2023-08-08 17:48:44 +07:00
XMRig eeb4c8fcb1 Make Platform::hasKeepalive() constexpr where always supported and code cleanup. 2023-08-06 20:26:07 +07:00
SChernykh 913bcd1887 Disable TCP keepalive before closing socket 2023-08-06 14:51:25 +02:00
SChernykh be03a249a7 Enabled keepalive for Windows (>= Vista) 2023-07-17 09:49:10 +02:00
XMRig af05759729 v6.20.1-dev 2023-07-03 18:47:55 +07:00
XMRig 72b6dcec11 v6.20.0 2023-07-03 12:42:00 +07:00
XMRig 998647cf98 v6.20.0-dev 2023-07-03 12:37:36 +07:00
SChernykh 10b621dbc9 Zephyr solo mining: fix for blocks with transactions 2023-06-24 15:15:37 +02:00
SChernykh 5c50f94dc1 Zephyr coin support
Solo mining will require `--coin Zephyr` in command line, or `"coin": "Zephyr",` in `pools` section of config.json
2023-06-24 14:37:20 +02:00
SChernykh 6274d019b8 KawPow: fixed data race when building programs
`uv_queue_work` can't be called from other threads, only `uv_async_send` is thread-safe.
2023-06-19 12:32:28 +02:00
XMRig e89d253e02 Code cleanup. 2023-06-07 20:48:56 +07:00
XMRig ed8dd8fb72 Merge branch 'dev-addApiRebind' of https://github.com/Spudz76/xmrig into Spudz76-dev-addApiRebind 2023-06-07 20:12:58 +07:00
XMRig c084a1ebe0 Disallow direct use of HwlocCpuInfo class. 2023-06-07 00:32:09 +07:00
XMRig cb32ad0803 Code cleanup. 2023-06-06 23:15:58 +07:00
XMRig d7659259d5 Fixed compatibility with hwloc 1.11. 2023-06-06 02:30:10 +07:00
xmrig 511722507b Merge pull request #3236 from MrFoxPro/dev
fix(cuda): receive CUDA loader error on linux too.
2023-06-05 23:07:38 +07:00
XMRig 7a73dd1191 Added new ARM CPU names. 2023-06-04 19:36:53 +07:00
XMRig ba299721aa v6.19.4-dev 2023-06-03 21:14:26 +07:00
XMRig 51f092f170 v6.19.3 2023-06-03 19:59:18 +07:00
SChernykh 61e883f5f7 Fixed jccErratum list 2023-05-26 12:46:59 +02:00
Tony Butler b0fd994f84 Add API rebind polling 2023-05-23 16:49:43 -06:00
SChernykh 148b2a1c0d RandomX: fixed undefined behavior
Using an inactive member of a `union` is an undefined behavior in C++
2023-05-23 14:40:12 +02:00
SChernykh 5d0bf95011 RandomX: optimized program generation 2023-05-21 17:44:20 +02:00
SChernykh ef01bfe2bc Tweaked auto-tuning for Intel CPUs
Alder Lake and newer CPUs have exclusive L3 cache and benefit from more threads until L3+L2 is filled.
2023-04-18 21:20:45 +02:00
XMRig 41d6221dad #3245 Improved algorithm negotiation for donation rounds by sending extra information about current mining job. 2023-04-07 23:35:05 +07:00
XMRig c8e6589643 v6.19.3-dev 2023-04-04 00:34:54 +07:00
XMRig b30b47d457 v6.19.2 2023-04-03 22:15:40 +07:00
SChernykh 78ae167c78 Sync with changes from proxy 2023-04-03 15:01:40 +02:00
Dmitriy Nikiforov d5be04fbbc fix(cuda): receive CUDA loader error on linux too. 2023-03-27 18:48:13 +05:00
XMRig 46eb5dca42 Code style cleanup. 2023-03-25 20:56:25 +07:00
moneromooo-monero 9db29637b6 DaemonClient: new X-Hash-Difficulty HTTP header optimization
If the caller knows the difficulty of a PoW hash a given nonce
yields, it can tell the callee via the X-Hash-Difficulty, which
may allow the callee to skip some processing if the difficulty
does not meet some criterion.

In my case, a merge mining proxy can know it's pointless trying
to submit the nonce to a chain with higher difficulty when the
nonce only meets the difficulty for a lower difficulty chain.
2023-03-25 09:48:54 +00:00
xmrig 98a9f6d951 Merge pull request #3230 from SChernykh/dev
Fixed parsing of TX_EXTRA_MERGE_MINING_TAG
2023-03-25 12:39:04 +07:00
SChernykh 3368891462 Fixed parsing of TX_EXTRA_MERGE_MINING_TAG 2023-03-24 22:42:26 +01:00