Skip to content

Include system transactions in flow blocks get <txid> --include transactions - #2211

Merged
jribbink merged 3 commits into
masterfrom
jribbink/get-block-system-txns
Dec 8, 2025
Merged

Include system transactions in flow blocks get <txid> --include transactions#2211
jribbink merged 3 commits into
masterfrom
jribbink/get-block-system-txns

Conversation

@jribbink

@jribbink jribbink commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

Closes #2185

Description

This adds system transactions to flow blocks get <txid> --include transactions.

Previously, we were just using the transaction IDs listed in the response, per collection. However - this does not cover transactions included outside of regular block production (system transactions).

To work around this, we make an additional GetTransactionsByBlockId request to query more robust block metadata relating to transactions.


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@github-actions

github-actions Bot commented Dec 1, 2025

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@jribbink
jribbink force-pushed the jribbink/get-block-system-txns branch from 4736789 to f2fd5c5 Compare December 1, 2025 22:14
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 23.91304% with 35 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/blocks/blocks.go 8.33% 31 Missing and 2 partials ⚠️
internal/blocks/get.go 80.00% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@jribbink jribbink added the Improvement Technical work without new features, refactoring, improving tests label Dec 2, 2025
Comment thread internal/blocks/blocks.go Outdated
@jribbink
jribbink merged commit fb1aab9 into master Dec 8, 2025
9 checks passed
@jribbink
jribbink deleted the jribbink/get-block-system-txns branch December 8, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Technical work without new features, refactoring, improving tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add system transactions to flow blocks get <id> --include transactions

4 participants