1839 Commits

Author SHA1 Message Date
Matt Hess e432577257 fix get_payout early return missing outputs
C/C++ CI / build-alpine-static (map[arch:aarch64 branch:latest-stable flags:-ffunction-sections -mfix-cortex-a53-835769 -mfix-cortex-a53-843419]) (push) Failing after 9s
C/C++ CI / build-alpine-static (map[arch:riscv64 branch:latest-stable flags:-ffunction-sections]) (push) Failing after 7s
C/C++ CI / build-alpine-static (map[arch:x86_64 branch:latest-stable flags:-ffunction-sections]) (push) Failing after 14s
C/C++ CI / build-ubuntu (map[c:gcc-10 cpp:g++-10 flags: os:ubuntu-22.04]) (push) Failing after 7m5s
C/C++ CI / build-ubuntu (map[c:gcc-11 cpp:g++-11 flags: os:ubuntu-22.04]) (push) Failing after 2m49s
C/C++ CI / build-ubuntu (map[c:gcc-12 cpp:g++-12 flags: os:ubuntu-22.04]) (push) Failing after 6m12s
C/C++ CI / build-ubuntu (map[c:gcc-13 cpp:g++-13 flags: os:ubuntu-24.04]) (push) Failing after 6m46s
C/C++ CI / build-ubuntu (map[c:gcc-14 cpp:g++-14 flags: os:ubuntu-24.04]) (push) Failing after 8m13s
C/C++ CI / build-ubuntu (map[c:gcc-9 cpp:g++-9 flags: os:ubuntu-22.04]) (push) Failing after 7m28s
C/C++ CI / build-ubuntu-static-libs (map[flags:-fuse-linker-plugin -ffunction-sections]) (push) Failing after 8m52s
C/C++ CI / build-ubuntu-riscv64 (map[flags:-fuse-linker-plugin -ffunction-sections os:ubuntu-24.04]) (push) Failing after 23s
C/C++ CI / build-freebsd (map[architecture:x86-64 host:ubuntu-latest name:freebsd version:13.3]) (push) Failing after 3m38s
C/C++ CI / build-openbsd (map[architecture:x86-64 host:ubuntu-latest name:openbsd version:7.4]) (push) Failing after 4m39s
clang-tidy / clang-tidy (push) Failing after 4m12s
CodeQL / Analyze (cpp) (push) Failing after 16m10s
Code coverage / coverage (push) Failing after 7m1s
cppcheck / cppcheck-ubuntu (push) Failing after 4m2s
source-snapshot / source-snapshot (push) Failing after 2m43s
Sync test (Ubuntu) / sync-test-ubuntu-tsan (push) Failing after 3h10m25s
C/C++ CI / build-ubuntu-aarch64 (map[flags:-fuse-linker-plugin -ffunction-sections -mfix-cortex-a53-835769 -mfix-cortex-a53-843419 os:ubuntu-22.04-arm]) (push) Has been cancelled
C/C++ CI / build-windows-msys2 (map[c:clang cxx:clang++ flags:-fuse-ld=lld -Wno-unused-command-line-argument -Wno-nan-infinity-disabled -Wno-attributes]) (push) Has been cancelled
C/C++ CI / build-windows-msys2 (map[c:gcc cxx:g++ flags:-ffunction-sections -Wno-error=maybe-uninitialized -Wno-error=attributes -Wno-attributes]) (push) Has been cancelled
C/C++ CI / build-windows-msbuild (map[grpc:OFF os:2022 rx:ON tls:ON upnp:ON vs:Visual Studio 17 2022 vspath:C:\Program Files\Microsoft Visual Studio\2022\Enterprise]) (push) Has been cancelled
C/C++ CI / build-windows-msbuild (map[grpc:ON os:2022 rx:ON tls:ON upnp:ON vs:Visual Studio 17 2022 vspath:C:\Program Files\Microsoft Visual Studio\2022\Enterprise]) (push) Has been cancelled
C/C++ CI / build-macos (push) Has been cancelled
C/C++ CI / build-macos-aarch64 (push) Has been cancelled
cppcheck / cppcheck-windows (push) Has been cancelled
Microsoft C++ Code Analysis / Analyze (push) Has been cancelled
Sync test (macOS) / sync-test-macos-intel (push) Has been cancelled
Sync test (Windows) / sync-test-windows-debug-asan (push) Has been cancelled
Sync test (macOS) / sync-test-macos-arm64 (push) Has been cancelled
Sync test (Ubuntu) / sync-test-ubuntu-msan (push) Has been cancelled
Sync test (Ubuntu) / sync-test-ubuntu-ubsan (push) Has been cancelled
Sync test (Ubuntu) / sync-test-ubuntu-asan (push) Has been cancelled
Sync test (Windows) / sync-test-windows-leaks (push) Has been cancelled
v4.16
2026-02-21 21:32:29 +00:00
Matt Hess cdb54f663a detect and break chain_recovery via step back 2026-02-21 17:30:09 +00:00
Matt Hess 7cd4c6be8b add fully static Linux x64 build 2026-02-20 20:41:20 +00:00
Matt Hess a79912127f updated readme 2026-02-20 20:33:27 +00:00
Matt Hess e6687fdbaa upgrade CodeQL action 2026-02-20 18:46:12 +00:00
Matt Hess 84f943ab90 bump runner to ubuntu-24.04 2026-02-20 15:49:02 +00:00
Matt Hess 60116154a6 fix riscv64 gcc-14 cross-compiler issue 2026-02-20 15:07:50 +00:00
Matt Hess 8fe46a5cf8 Fix corrupt patch: add leading space to blank context lines in win7.patch 2026-02-20 02:48:52 +00:00
Matt Hess 76d1efcf57 Implement batch block transfer with server side ancestor fill, BLOCK_BATCH_MAX_COUNT reduced from 50 to 10 to avoid contention warnings, fix get_seed failure in add_external_block returning false 2026-02-19 20:30:23 +00:00
Matt Hess 867047f897 Fix crash at start with loglevel 5 and clean up debug logging 2026-02-19 17:26:21 +00:00
Matt Hess 6efab82426 Fix BlockTemplate assignment operator missing Salvium-specific fields 2026-02-19 16:27:23 +00:00
Matt Hess cc960044f6 update BoringSSL win7 patch, upgrade RISC-V to ubuntu-24.04, expand macOS matrix 2026-02-19 16:17:28 +00:00
Matt Hess b9eaa797d9 Fix mainchain difficulty stubs causing consensus failure 2026-02-19 15:06:13 +00:00
Matt Hess de76c93b67 Suppress RandomX strict-overflow warnings in GCC compile and LTO link phases 2026-02-19 13:47:53 +00:00
Matt Hess 289bcc2d03 Import upstream fixes, IPv6 ZMQ support, submodule updates, RandomX prefetch perf tweaks, v2 VM work in progress and bug fixes 2026-02-19 13:35:59 +00:00
Matt Hess 218e04d80d retry unverified blocks after get_miner_data RPC 2026-02-19 02:42:48 +00:00
Matt Hess 7eac7d4542 Fix sync stall, C++17 compat, cppcheck shadow, and gate sync tests behind some CI checks 2026-02-19 01:42:21 +00:00
Matt Hess fedf09caa2 set proto tx hf height 2026-02-18 18:24:16 +00:00
Matt Hess d99e139f3a Defer block template construction until getblocktemplate RPC completes so treasury outputs are always present, treat RPC failures as fatal (no template built, retry on next ZMQ), fix txout_to_key parser missing unlock_time field 2026-02-18 17:44:24 +00:00
Matt Hess 336d15b8a5 Fix stale checkpoints on purge/genesis and BLOCK_BATCH_RESPONSE stall 2026-02-18 04:01:01 +00:00
Matt Hess cd90973f4a Fix peer protocol display for 1.6 2026-02-18 02:29:05 +00:00
Matt Hess 544176c964 include genesis in checkpoint creation 2026-02-18 02:09:56 +00:00
Matt Hess 6107ca6002 Remove protocol_tx_blob from sidechain data; keep only stub in mainchain 2026-02-18 01:58:57 +00:00
Matt Hess 357e73c4a6 Add Protocol 1.6 for batch block transfer and sidechain protocol_tx support 2026-02-17 19:33:50 +00:00
Matt Hess 7b10a617d4 Split sync test workflow into per-platform files 2026-02-17 18:48:39 +00:00
Matt Hess 662ad27186 Align params/constructor flow with upstream p2pool 2026-02-06 12:01:38 +00:00
Matt Hess c6ee991de7 Fix cppcheck warnings from params-file changes 2026-02-06 03:06:58 +00:00
Matt Hess 855e1df5b3 Fix member declaration order to match constructor initialization 2026-02-06 00:26:49 +00:00
Matt Hess b19b2a5d08 Initialize protocol_tx offset/size members in constructor 2026-02-05 23:52:36 +00:00
Matt Hess bb3fca1310 Fix clang-tidy hicpp-use-emplace warnings in args parsing 2026-02-05 21:26:09 +00:00
Matt Hess 9e36f2dfcf Fix clang-tidy narrowing conversion warnings in protocol_tx splice 2026-02-05 20:53:17 +00:00
Matt Hess e12419d79b Splice real protocol_tx at submit time, not template build time 2026-02-05 14:57:48 +00:00
Matt Hess 3b85ec3aba Gate block template on protocol_tx RPC
Wait for getblocktemplate RPC response before delivering templates
  to miners, ensuring the protocol_tx hash is correct in the PoW
  merkle root. All error paths fall back to empty protocol_tx so
  mining is never permanently stalled.

  Also bump ver to 4.16 and include upstream whitespace fix in tcp_server
2026-02-02 19:48:15 +00:00
Matt Hess 5ab43ff6d9 When Salvium yield/audit payouts mature, the daemon expects a non-empty
protocol_tx in submitted blocks. P2pool previously hardcoded an empty
   protocol_tx (0 outputs), causing block rejections with "Invalid number
   of outputs in protocol_tx".

   Now fetches the daemon's blocktemplate_blob via getblocktemplate RPC,
   parses out the real protocol_tx bytes, and uses them in the block
   template. Falls back to the empty protocol_tx when the RPC hasn't
   returned yet (correct for blocks with no payouts due).
2026-02-02 19:10:38 +00:00
Matt Hess f0b58de64a Add --log-file command line parameter 2026-01-21 22:20:47 +00:00
Matt Hess a5908e7560 Add --params-file support for config file based parameters 2026-01-21 20:11:41 +00:00
Matt Hess 828f7f3291 Pin cppcheck to stable release 2.19.0 v4.15 2026-01-21 02:37:51 +00:00
Matt Hess 221fc2a080 Update new version notification URL 2026-01-21 01:47:20 +00:00
Matt Hess 63467b2c52 Fix checkpoint validation using wrong range limit 2026-01-18 14:41:37 +00:00
Matt Hess a668fa33c2 Bump version to 4.15 2026-01-15 01:56:34 +00:00
Matt Hess 5d196ade1f Enhance mainchain reorg handling with mining pause and robust recovery 2026-01-14 18:31:37 +00:00
Matt Hess fe1f36c7fe Increase genesis wait, add 2nd seed, resolve circular checkpoint request issue 2026-01-14 05:30:33 +00:00
Matt Hess 36275a03c9 convert sync test to 3 parallel tracks 2026-01-13 01:51:42 +00:00
Matt Hess b20555e4ea Fix win7.patch empty line formatting 2026-01-13 01:47:02 +00:00
Matt Hess a967161de8 Fix corrupted win7.patch format for BoringSSL update 2026-01-13 01:28:12 +00:00
Matt Hess 11a5d3ff94 Fix cppcheck const warning and update BoringSSL win7 patch 2026-01-13 00:32:23 +00:00
Matt Hess 6c8b8894ee Fix TSan race on m_p2pServer during startup, update curl to 8.18.0 2026-01-12 21:48:10 +00:00
Matt Hess 67573992d2 Tune checkpoint interval to 100 blocks for better prune alignment 2026-01-12 20:11:01 +00:00
Matt Hess 67200d8457 Fix deadlock when trigger_recovery() called while holding sidechain lock, Add mainchain_height to checkpoints for smarter rollback during reorgs, Resume mining immediately after reset (network rebuilds via mining, not sync), Increase checkpoint history from 20 to 50 for deeper reorg coverage 2026-01-12 17:22:21 +00:00
Matt Hess 5e5fef537e Fix up chain resync deadlock during cascade failure 2026-01-12 16:19:52 +00:00