Skip to content

Restore CryptoNight-WOW dispatch for algorithm selector 12#58

Closed
MoneroOcean wants to merge 1 commit into
masterfrom
codex/fix-cryptonight-wow-algorithm-dispatch
Closed

Restore CryptoNight-WOW dispatch for algorithm selector 12#58
MoneroOcean wants to merge 1 commit into
masterfrom
codex/fix-cryptonight-wow-algorithm-dispatch

Conversation

@MoneroOcean
Copy link
Copy Markdown
Owner

Motivation

  • The native get_cn_fn() dispatch removed the case 12 mapping so calls using selector 12 (documented/tested as CryptoNight-WOW) could silently be routed to the wrong hash implementation, breaking share/hash verification for WOW jobs.

Description

  • Add case 12: return FNA(CN_WOW); to get_cn_fn() in multihashing.cc so selector 12 correctly dispatches to the CryptoNight-WOW implementation while preserving the existing height-dependent API behavior.

Testing

  • Attempted to run npm test -- tests/test_sync-wow.js but the test run failed in this environment due to a missing bindings module, so automated tests could not complete; the change is a single-line dispatch fix.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant