Skip to content

Clean up PR #278 review findings#279

Merged
blondfrogs merged 3 commits intoRunOnFlux:remove_boost_c++_20_rebasedfrom
MorningLightMountain713:remove_boost_c++_20_rebased
Apr 27, 2026
Merged

Clean up PR #278 review findings#279
blondfrogs merged 3 commits intoRunOnFlux:remove_boost_c++_20_rebasedfrom
MorningLightMountain713:remove_boost_c++_20_rebased

Conversation

@MorningLightMountain713
Copy link
Copy Markdown
Contributor

@MorningLightMountain713 MorningLightMountain713 commented Apr 23, 2026

Summary

  • boost.mk: Remove compiled library build (bootstrap/b2), switch to header-only install (cp -r boost). Only signals2 and multi_index are used — both header-only. Boost depends step goes from several minutes (bootstrap + b2 compile) to seconds (header copy).
  • net.cpp: Remove duplicate includes (4x condition_variable, 2x mutex, stray vector/thread/chrono) from bad rebase
  • fluxd.cpp: Remove stray vector/thread includes interleaved in copyright block
  • mempool_limit.h: Remove dead boost/optional.hpp include (code uses std::optional)
  • fs.cpp: Use OVERLAPPED typedef instead of _OVERLAPPED struct tag (Windows)
  • PAIRTYPE macro removal: Removed the pre-C++11 PAIRTYPE(t1, t2) macro from utilstrencodings.h and replaced all 34 usages across 10 files with C++20 structured bindings (e.g. for (auto& [txid, wtx] : mapWallet))

Test plan

  • Clean build on Ubuntu 25.04 with gcc-14 (zcutil/build.sh -j16) — all 4 binaries produced, zero errors
  • Verified zero Boost/OpenSSL shared library linkage via ldd
  • Stripped binary size identical to previous build (13,563,464 bytes)
  • Deployed to 6 test nodes — all synced at chain tip, CONFIRMED status, no errors
  • PAIRTYPE cleanup: clean build and deployed to test node, synced to tip, no errors

🤖 Generated with Claude Code

…ead import, Windows typedef

- boost.mk: Remove compiled library build (bootstrap/b2), just copy headers
- net.cpp: Remove duplicate includes (4x condition_variable, 2x mutex) from bad rebase
- fluxd.cpp: Remove stray vector/thread includes from copyright block
- mempool_limit.h: Remove dead boost/optional.hpp include (code uses std::optional)
- fs.cpp: Use OVERLAPPED typedef instead of _OVERLAPPED struct tag

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
MorningLightMountain713 and others added 2 commits April 24, 2026 09:57
PAIRTYPE(t1, t2) was a pre-C++11 convenience macro for std::pair.
Replace all 34 usages with structured bindings and remove the macro
definition from utilstrencodings.h.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@blondfrogs blondfrogs merged commit bbce649 into RunOnFlux:remove_boost_c++_20_rebased Apr 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants