Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Conversation

@jstarry
Copy link
Contributor

@jstarry jstarry commented Feb 17, 2022

Problem

Transaction status metadata types allow metadata to be None which can cause problems when that metadata is required for RPC requests.

Summary of Changes

Very similar to #23028

  • Fetching a block from the blockstore which doesn't have all tx metas, will now return an error.
  • Removed allow_missing_metadata cli option from ledger tool uploader because it's impossible for that to happen
  • Introduced new types for representing whether metadata is complete or not.

Fixes #

@jstarry jstarry force-pushed the v1.9-enforce-tx-meta branch 9 times, most recently from b93ebcf to 43aa4dc Compare February 17, 2022 10:42
@jstarry jstarry force-pushed the v1.9-enforce-tx-meta branch from 43aa4dc to 0bfa584 Compare February 21, 2022 07:06
@codecov
Copy link

codecov bot commented Feb 21, 2022

Codecov Report

Merging #23212 (0bfa584) into v1.9 (08d6b98) will decrease coverage by 0.0%.
The diff coverage is 82.2%.

@@            Coverage Diff            @@
##             v1.9   #23212     +/-   ##
=========================================
- Coverage    81.6%    81.6%   -0.1%     
=========================================
  Files         530      530             
  Lines      147975   148032     +57     
=========================================
+ Hits       120882   120923     +41     
- Misses      27093    27109     +16     

@jstarry
Copy link
Contributor Author

jstarry commented Feb 21, 2022

This is a manual backport because I won't be backporting earlier changes related to versioned transactions to v1.9. But this fix has already been applied to v1.8 so I think it's appropriate to bring back to v1.9 as well

Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. lgtm

@jstarry jstarry merged commit 450404f into solana-labs:v1.9 Feb 23, 2022
@jstarry jstarry deleted the v1.9-enforce-tx-meta branch February 23, 2022 04:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants