Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0: ledger-tool: Make blockstore slot functional with no tx metadata (backport of #2423) #3887

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Dec 3, 2024

Problem

A previous command consolidated code between the bigtable block and blockstore slot commands. In doing so, support for running the slot command on partial blocks was removed. However, support for running the command when tx metadata is absent was also accidentally removed.

Summary of Changes

This change re-adds the ability for the slot command to print transaction information even when the the blockstore does not contain transaction metadata.


This is an automatic backport of pull request #2423 done by Mergify.

A previous commit unified the code to output a slot between the
bigtable block and blockstore slot commands. In doing so, support for
blockstore slot when tx metadata is absent was unintentionally broken

This re-adds support for using the blockstore slot command when the
blockstore does not contain tx metadata

(cherry picked from commit ee0667d)
@mergify mergify bot requested a review from a team as a code owner December 3, 2024 15:07
@mergify mergify bot assigned steviez Dec 3, 2024
Copy link

@steviez steviez left a comment

Choose a reason for hiding this comment

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

Justification for v2.0 PR - the blockstore slot command is broken at the moment for nodes that do not have --enable-rpc-transaction-data. This is likely most voting validators, so having the command not work and return the following error is annoying:

error getting entries from slot: X: MissingTransactionMetadata
missing transaction metadata

These changes are fairly restricted to ledger-tool, so I think it is fine for the BP to v2.0 at this point in the life cycle

Copy link

@bw-solana bw-solana left a comment

Choose a reason for hiding this comment

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

LGTM. Entirely contained to ledger-tool with the exception of some encoding utilities (which are currently only used by ledger tool)

@steviez steviez merged commit b37f0db into v2.0 Dec 4, 2024
38 checks passed
@steviez steviez deleted the mergify/bp/v2.0/pr-2423 branch December 4, 2024 17:06
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