Skip to content

Match Qbit AuxPoW commitment byte order - #1

Merged
kiwidream merged 2 commits into
0.1.xfrom
codex/fix-auxpow-commitment-byte-order
Jun 25, 2026
Merged

kiwidream merged 2 commits into
0.1.xfrom
codex/fix-auxpow-commitment-byte-order

Conversation

@kiwidream

@kiwidream kiwidream commented Jun 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Follow createauxblock.commitmentorder when building AuxPoW parent coinbase commitments: internal uses qbit's historical ser_uint256(chain_root) order, and display uses the standard display-order ser_uint256(chain_root)[::-1] bytes.
  • Fall back to historical internal order for older qbit nodes that do not expose commitmentorder.
  • Surface commitment order in the Stratum job log/event metadata.
  • Document commitmentorder and commitmentactivationheight, and make the qbit helper wrapper require activation-aware helper support when the field is present.
  • Add focused tests for display/internal switching, legacy fallback, invalid values, and helper compatibility.

Validation

  • python3 -m unittest tests.test_auxpow_vardiff_coordinator tests.test_python_auxpow_payload
  • python3 -m py_compile lab/auxpow/auxpow_coordinator.py examples/python-auxpow-payload.py tests/test_auxpow_vardiff_coordinator.py tests/test_python_auxpow_payload.py
  • git diff --check
  • python3 -m unittest discover tests

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.

1 participant