Skip to content

fix(kaspa): handle null payload in transaction trace#450

Merged
danwt merged 1 commit intomain-dymfrom
danwt/claude/fix-migration-trace-null-payload
Jan 23, 2026
Merged

fix(kaspa): handle null payload in transaction trace#450
danwt merged 1 commit intomain-dymfrom
danwt/claude/fix-migration-trace-null-payload

Conversation

@danwt
Copy link
Copy Markdown

@danwt danwt commented Jan 23, 2026

Summary

  • Migration transactions have no payload (empty MessageIDs encodes to zero bytes → Kaspa stores as null)
  • The trace function (recursive_trace_transactions) required a non-null payload and would error with "No payload found in transaction"
  • Fix: treat null payload as empty — no message IDs to extract, which is correct for migration TXs

Context

After migration, the post-migration sync traces the new escrow UTXO back to the old hub anchor via the migration TX. The migration TX has no withdrawal messages (just moves funds), so its payload is null.

Test plan

  • Deploy to blumbus with REST API pointing to api-tn10.kaspa.org
  • Verify trace succeeds through the migration TX (null payload handled)
  • Verify hub anchor is updated

🤖 Generated with Claude Code

Migration transactions have no payload (no withdrawals processed),
but the trace function required a non-null payload. Treat null as
empty — no message IDs to extract.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@danwt danwt merged commit 09cf3cd into main-dym Jan 23, 2026
7 of 11 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.

1 participant