Skip to content

fix(beef): set BUMP index when merging rawtx to BEEF#322

Merged
mrz1836 merged 1 commit into
bsv-blockchain:masterfrom
kuba-4chain:fix/bump-index-missing-in-merge-rawtx
May 28, 2026
Merged

fix(beef): set BUMP index when merging rawtx to BEEF#322
mrz1836 merged 1 commit into
bsv-blockchain:masterfrom
kuba-4chain:fix/bump-index-missing-in-merge-rawtx

Conversation

@kuba-4chain
Copy link
Copy Markdown
Contributor

@kuba-4chain kuba-4chain commented May 22, 2026

Description of Changes

Beef.MergeRawTx (transaction/beef.go) sets beefTx.Transaction.MerklePath and beefTx.DataFormat = RawTxAndBumpIndex when a bumpIndex is provided, but never assigns beefTx.BumpIndex = *bumpIndex. The sibling MergeTransactionWithTxid does this correctly. The wire-format serializer encodes tx.BumpIndex directly, so the bug only surfaces after serialization.

Testing Procedure

Describe the tests you've added or any testing steps you've taken.

  • I have added new unit tests
  • All tests pass locally
  • I have tested manually in my local environment
  • All tests pass when using go test ./...

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have updated CHANGELOG.md with my changes
  • I ran golangci-lint run
  • I have run go fmt and go vet one final time before requesting a review

@sonarqubecloud
Copy link
Copy Markdown

@mrz1836 mrz1836 self-requested a review May 28, 2026 15:30
Copy link
Copy Markdown
Contributor

@mrz1836 mrz1836 left a comment

Choose a reason for hiding this comment

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

LGTM

@mrz1836 mrz1836 merged commit 8ccc933 into bsv-blockchain:master May 28, 2026
4 of 5 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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