Skip to content

Integrate Testing for WORKING Beta LocalHost CPU Mining using New Authenticated Stateless Mining Server #247

Open
NamecoinGithub wants to merge 5192 commits into
Nexusoft:testnet-devfrom
NamecoinGithub:NODE
Open

Integrate Testing for WORKING Beta LocalHost CPU Mining using New Authenticated Stateless Mining Server #247
NamecoinGithub wants to merge 5192 commits into
Nexusoft:testnet-devfrom
NamecoinGithub:NODE

Conversation

@NamecoinGithub

Copy link
Copy Markdown
Contributor

This is a PR request targeting Testnet, so it can possibly be integrated with Upstream Codebase bringing New Upgraded Features in the Future, alongside the reliable and good designed Base Architecture.

I built a Nexus Interface .deb for Linux with the Stateless Mining Server NODE built in.

The testing should allow the GUI to Stake and Mine at the same time. However the Command Line LLL-TAO is a better/required option for real Pool Nodes, but the GUI is good for someone who can Stake and Mine at the same time using CPU. GPU testing and support for Miner will come later!

CPU Mining is Solid without any errors for weeks of Mining. Although it's just CPU mining available in the build, it's the PROCESS that is in a near term Refined finished state.

UPGRADED FALCON 512 TO == FALCON 1024 default keys for Signing are still Falcon512, but default keys for MINER-NODE handshake is Falcon1024. Whatever the MINER keys in will also be the same size for it's Block Found Submit Disposable Falcon Size either Falcon512 or Falcon1024.

Legacy Server 8 Bit OPCODES and Stateless Server is 16 Bit Opcodes

CREATE NEW TRITIUM POW STATELESS MINING SERVER with FALCON AUTH ++++++++ FALCON 1024 Bit DEFAULT for DISPOSABLE FALCON

MINIMAL NON-TESTED Remote Node POOL DISCOVERY BUILT IN

MINIMAL SOLO MINING WORKING/POLISHED BUT COLIN CANTRELL WILL INSERT/DELETE TO FIT THE PURPOSE, 95% OF THE TOTAL WORK/CODING IS FINISHED/ #1 I STAYED IN MY LANE OF DEALING WITH ONLY MINING INFRASTRUCTURE CODE WITHIN NODE. AND CREATED MY OWN STATELESS MINING UTILITY WORKSHOP, AND MANY CONSTANTS UTILITIES ALONG WITH AAD, OPENSSL EVP DOMAINS, MANY AWESOME OTHER UPGRADES.

FULL DOCUMENTATION SECTIONS, STILL NEEDS FINAL POLISH, WORK. MOST OF THE CODE IS FROM A WHOLE HOST OF TRIAL AND ERROR TO LEARN ABOUT NEXUS CODEBASE. BUT I LEARNED THE HARD WAY, SO NO ONE ELSE HAS TO FIGURE IT OUT THEMSELVES. FOR THIS I CREATED A HUGE REPOSITORY OF DOCUMENTS WITH CROSS-REFERENCED LINKS, FOR BOTH CONFIG OPTIONS AND NEXUSMINER TIE-INS FOR CODE KEYWORDS.

NEXUS.CONF

mining=1

llpallowip=0.0.0.0

autologin=1

username=
password=
pin=

verbose=3
trainingwheels=1
nseqdiag=1

This pull request introduces a comprehensive developer experience overhaul for the Nexus LLL-TAO project, focusing on modernizing the build, development, and CI/CD infrastructure. The main changes include adding DevContainer support, improved build and test documentation, streamlined CI workflows for both Linux and Windows, and explicit dependency management. These updates make it much easier for developers (and GitHub Copilot agents) to set up, build, test, and contribute to the project in a reproducible way.

Key changes by theme:

DevContainer and Local Development Environment:

  • Added a complete .devcontainer/devcontainer.json for VSCode DevContainer support, specifying Ubuntu 22.04, required features, port forwarding, and recommended VSCode extensions/settings. This enables one-command reproducible development environments.
  • Introduced .devcontainer/setup.sh to automate dependency installation, environment validation (including Berkeley DB check), workspace permissions, and provide clear post-setup instructions.

Build and Dependency Documentation:

  • Added .github/copilot-instructions.md with detailed build, dependency, and testing instructions, including troubleshooting and code modification guidelines for both Linux and macOS.
  • Added .github/copilot-instructions.yml to explicitly declare build/test requirements and dependencies for Copilot agents and CI.

Continuous Integration and Validation Workflows:

  • Added .github/workflows/devcontainer-validate.yml to automatically build, test, and validate the project in a CI environment, ensuring that the codebase is always buildable and testable from a clean state.
  • Added .github/workflows/copilot-setup-steps.yml for dependency installation validation, supporting both manual and PR-triggered runs.
  • Added .github/workflows/release-windows-node.yml to build, package, and upload a portable Windows node binary using MSYS2/MinGW, facilitating cross-platform releases.

Project Metadata and Templates:

  • Added a LICENSE file (MIT License) for clear open-source licensing.
  • Added .github/PULL_REQUEST_TEMPLATE_AGENT.md to standardize PR descriptions for coding agents, improving reviewability and clarity.

Cleanup:

  • Removed the old Dockerfile for the previous Debian-based build, as the new DevContainer setup supersedes it.

These changes collectively modernize the developer workflow, improve onboarding, and ensure robust, repeatable builds and tests across platforms.

Working Releases for Localhost CPU mining without any bugs 2 full weeks of Continuous Mining, only STALE blocks are rejected.

https://github.com/NamecoinGithub/NexusMiner/releases

https://github.com/NamecoinGithub/LLL-TAO/releases

Merging isn't required for me to keep developing, but Months of Review is expected!

Thanks!

NamecoinGithub and others added 30 commits April 24, 2026 08:42
…rejected-blocks

Revert PR #563 "Harden SUBMIT_BLOCK parsing and eliminate zero-difficulty mining templates"
… gate, zero-diff guards, stateBest null guard

Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/5d9a21f7-515f-4923-9866-d4bd2f9d9177

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…-diff guards, and stateBest null guard from PR #563 (without canonical parser) #566 from NamecoinGithub/copilot/reapply-four-bug-fixes

Re-apply per-channel difficulty cache, fLengthRead framing gate, zero-diff guards, and stateBest null guard from PR #563 (without canonical parser)
Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/ba255cc0-012b-4e04-a78c-314683639928

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/a2997aae-4158-46a2-ab9d-33ec7b40eb8d

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…om NamecoinGithub/copilot/fix-destructor-race-condition

C++20 sweep: bump -std and fix the three first-party blockers
…avior

Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/95da48c5-1325-4462-b54b-9e57915fd820

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…late ctor decls

Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/a09285c3-480c-4b3f-94d4-58400601736b

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/a09285c3-480c-4b3f-94d4-58400601736b

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…udit-implementation-plan

# Conflicts:
#	src/Util/include/allocators.h

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/2db33de5-f5ca-4627-9962-3f2348f103f6

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…(=22)

Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/14b849ae-71b5-4ee6-8cf3-6665407d1258

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…ire-format ceiling with NexusMiner PR #675 #568 from NamecoinGithub/copilot/fix-voffsets-bug-implementation

vOffsets: fix latent underflow in GetPrimeDifficulty and align node wire-format ceiling with NexusMiner PR #675
…r of NODE

Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/03922c56-770b-4577-8982-01d5c500442f

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…e prime underflow guard #569 from NamecoinGithub/copilot/c20-upgrade-audit-implementation-plan

C++20 sweep: standalone allocators, [[nodiscard]] on builders, restore prime underflow guard
…compiler-standard

# Conflicts:
#	src/Util/include/allocators.h

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…t/update-cmake-compiler-standard

Merge NODE (PR #569) and harden secret zeroisation against DSE
…p20-features

# Conflicts:
#	src/Util/include/allocators.h

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/498164e9-8518-4692-bca4-8cc175906c1b

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
NamecoinGithub and others added 28 commits May 26, 2026 12:32
…ns() #608 from NamecoinGithub/copilot/research-filtering-vtx-transactions

Option B: drop vtx with mempool-only predecessor inside AddTransactions()
…ilter

Agent-Logs-Url: https://github.com/NamecoinGithub/LLL-TAO/sessions/c7fd5ca0-a1c9-4079-bf66-30d47851bd4d

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
… from NamecoinGithub/copilot/update-docs-and-tests-for-filter

Update documentation and tests for mempool-only-predecessor filter
…vel 2)

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…e nBits pipeline #610 from NamecoinGithub/copilot/add-nbits-logging

Add [NBITS_BAKED] and [NBITS_CACHE_HIT] forensics logging to node-side nBits pipeline
…ency

Replace the single mempool ReadLast call with a three-step resolution:
1. Hard MALFORMED invariant (hashPrevTx == self → reject)
2. Option C: mempool-first with self-match guard
3. Option B: disk-only fallback when mempool returns self

Update test simulator to mirror composite logic and add 6 new test cases
under [validate_vtx_consistency] tag. Append regression update section
to NSEQ_DIAG_MEMPOOL_READLAST_FIX.md documenting the fix.

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…n up test comments

Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…inConsistency #611 from NamecoinGithub/copilot/fix-vtx-sigchain-consistency

Implement composite C→B staleness logic in ValidateVtxSigchainConsistency
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…racle #612 from NamecoinGithub/copilot/fix-vtx-sigchain-stale

Align submit-time vtx sigchain pre-check with Connect() disk anchor oracle
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
Co-authored-by: NamecoinGithub <130555019+NamecoinGithub@users.noreply.github.com>
…b/copilot/cleanup-documentation-structure

Convert RISC-V notes into build documentation
Copilot AI review requested due to automatic review settings June 16, 2026 12:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

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.

3 participants