Skip to content

blockstore: Use wincode::deserialize_exact for columns::Index - #16511

Merged
kskalski merged 1 commit into
anza-xyz:masterfrom
deepak-pandey2005:replace-wincode-deserialize-exact
Oct 29, 2026
Merged

kskalski merged 1 commit into
anza-xyz:masterfrom
deepak-pandey2005:replace-wincode-deserialize-exact

Conversation

@deepak-pandey2005

Copy link
Copy Markdown

Problem

ledger/src/blockstore/column.rs had a temporary deserialize_reject_trailing helper with a TODO:
// TODO: replace with dedicated wincode API on wincode>=0.5.1

Since the workspace has upgraded to wincode 0.6.3, this custom helper is no longer needed.

Summary of Changes

  • Replaced deserialize_reject_trailing with wincode::deserialize_exact in columns::Index::deserialize.
  • Removed the deserialize_reject_trailing helper function and its TODO comment.
  • Removed unused wincode trait imports (ReadError, SchemaRead, io::Reader).

Test Plan

  • Verified cargo check -p solana-ledger succeeds.
  • Verified blockstore index unit tests pass.

Replace the custom `deserialize_reject_trailing` workaround in
`blockstore/column.rs` with `wincode::deserialize_exact`, which is
now available in wincode >= 0.5.1 (workspace uses 0.6.3).
Also clean up now-unused wincode trait imports.
@mergify
mergify Bot requested a review from a team October 29, 2026 05:35
@steviez
steviez requested review from cpubot and kskalski October 29, 2026 05:38
@kskalski kskalski added the CI Pull Request is ready to enter CI label Oct 29, 2026
@github-actions github-actions Bot removed the CI Pull Request is ready to enter CI label Oct 29, 2026
@kskalski
kskalski enabled auto-merge October 29, 2026 06:10
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.4%. Comparing base (9e90305) to head (0287c6b).

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #16511    +/-   ##
========================================
  Coverage    82.4%    82.4%            
========================================
  Files         955      955            
  Lines      373654   373645     -9     
========================================
+ Hits       307921   308237   +316     
+ Misses      65733    65408   -325     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kskalski
kskalski added this pull request to the merge queue Oct 29, 2026
Merged via the queue into anza-xyz:master with commit 85b7b4e Oct 29, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants