Skip to content

Conversation

@jribbink
Copy link
Contributor

@jribbink jribbink commented Dec 1, 2025

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
Copy link

github-actions bot commented Dec 1, 2025

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

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
txs = append(txs, tx.String())
collections = append(collections, collection)
}
result["collections"] = collections
Copy link
Contributor

Choose a reason for hiding this comment

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

the key was "collection" before, should we keep it like that for backward compatibility?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, probably best practice good catch ty

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