Zcash × Brave WalletPersonal project

Type to search. Use ↑ ↓ and Enter to open a result.

UpdateSubtreeRoots stores the block hash as root_hash, and its upsert fallback is dead

Open Bug Sync, scanning & storage

Lead item brave-browser#60897 · opened by netzenbot · last source update

This issue is open on GitHub. Fixes sometimes land through pull requests that do not link the issue (for example a later refactor); this tracker follows only explicit links (closing references, “Resolves” lines, brave_<issue> branch names, uplifts and the issue timeline).

Issue state

Open

Open.

Implementation

No pull request is linked by closing keywords, GitHub’s closing references, a brave_<issue> branch name or the issue timeline.

Release notes

No platform changelog lists this item.

Validation

No QA label.

No QA pass labels.

QA labels are Brave’s own validation records per OS. They are not independent verification by this tracker.

Target

No milestone set.

Platforms (OS labels): none

Owner: unassigned

Build presence

Whether a merged pull request in this group is an ancestor of the brave-core tag of each platform’s current build (from versions.brave.com). Code presence is not the same as a feature being exposed on that platform.

PlatformReleaseBetaNightly
DesktopUnknown 1.100.59no merged PR is linked, so presence in this build is unknownUnknown 1.101.57no merged PR is linked, so presence in this build is unknownUnknown 1.102.46no merged PR is linked, so presence in this build is unknown
AndroidUnknown 1.100.59no merged PR is linked, so presence in this build is unknownUnknown 1.101.57no merged PR is linked, so presence in this build is unknownUnknown 1.102.43no merged PR is linked, so presence in this build is unknown
iOSNo buildNo tagged build (iOS App Store versions have no published build number).Unknown 1.101.57no merged PR is linked, so presence in this build is unknownUnknown 1.102.46no merged PR is linked, so presence in this build is unknown

Members and their history

Issue

brave-browser#60897 UpdateSubtreeRoots stores the block hash as root_hash, and its upsert fallback is dead

State: open · created · updated · discovered via search:lightwalletd, search:orchard wallet, search:zcash · matched body:zcash_decoder

bug feature/web3/wallet

components/brave_wallet/browser/internal/orchard_storage/orchard_storage.cc:1013 SubtreeRoot has separate root_hash and complete_block_hash fields (zcash_decoder.mojom:77-81). UpdateSubtreeRoots size-checks and binds complete_block_hash into the shard_tree.root_hash column for both the INSERT and the UPDATE, and roots[i]->root_hash is never used. The conflict fallback compares database_.GetErrorCode() with 19, but sql::Database opens with SQLITE_OPEN_EXRESCODE and…