Skip to content

Restore DualWrite import duplication and change pointer schema#3271

Open
Kbhat1 wants to merge 9 commits intomainfrom
kartik/pointer-single-key-no-ss-iter
Open

Restore DualWrite import duplication and change pointer schema#3271
Kbhat1 wants to merge 9 commits intomainfrom
kartik/pointer-single-key-no-ss-iter

Conversation

@Kbhat1
Copy link
Copy Markdown
Contributor

@Kbhat1 Kbhat1 commented Apr 18, 2026

No description provided.

yzang2019 and others added 8 commits April 16, 2026 21:08
composite.Iterator/ReverseIterator now mirror Get/Has routing
(ReadMode != CosmosOnlyRead) instead of gating on WriteMode ==
SplitWrite, so iteration and point reads stay consistent across all
WriteMode/ReadMode combinations.

EVMStateStore.Iterator/ReverseIterator now reuse routeKey to pick the
correct sub-DB in SeparateEVMSubDBs mode, since every real caller
iterates within a single bucket (e.g. pointer registry stays in
Legacy).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two changes that together eliminate the need for SS-path iteration on
EVM data:

1. composite.Import now sends evm snapshot nodes to BOTH cosmos and evm
   under DualWrite (previously mutually-exclusive after #3250). This
   restores the state-sync-time safety net that made mainnet DualWrite
   state-synced nodes surface pointer lookups via cosmos even while the
   iterator routing bug was present.

2. Pointer registry collapsed to single-key: one record per pointee,
   with the uint16 version packed into the value instead of the key
   suffix. GetPointerInfo/GetAnyPointerInfo become single Gets — the
   only hot-path EVM iterator is gone. Migration handlers updated to
   read the version-prefixed value and drop the now-unneeded dedup map.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 18, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 18, 2026, 2:16 PM

@Kbhat1 Kbhat1 marked this pull request as ready for review April 18, 2026 14:14
@Kbhat1 Kbhat1 changed the base branch from yzang/giga-integration-test to main April 18, 2026 14:14
@Kbhat1 Kbhat1 changed the title Restore DualWrite import duplication and collapse pointer schema Restore DualWrite import duplication and change pointer schema Apr 19, 2026
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.

2 participants