Conversation
bbondy
left a comment
There was a problem hiding this comment.
Review via brave-core-bot: nit: inline is redundant inside an anonymous namespace since the namespace already provides internal linkage. Use constexpr char kOrchardDatabaseName[] = "orchard.db"; without the inline specifier.
(re: components/brave_wallet/browser/internal/orchard_sync_state.cc)
bbondy
left a comment
There was a problem hiding this comment.
Review via brave-core-bot: Per Chromium guidelines, explicitly specify base::TaskPriority and shutdown behavior when creating thread pool task runners rather than relying on defaults. See OrchardSyncState::CreateSyncStateSequence() in components/brave_wallet/browser/internal/orchard_sync_state.cc.
This better be tracked by separate issue brave/brave-browser#52985 |
44d124a to
964b352
Compare
3d03c86 to
29317c2
Compare
dc75776 to
a76b89b
Compare
|
Chromium major version is behind target branch (145.0.7632.120 vs 146.0.7680.32). Please rebase. |
a76b89b to
237ced6
Compare
237ced6 to
a4b46ba
Compare
|
[puLL-Merge] - brave/brave-core@33971 DescriptionThis PR refactors the The key change is that Possible Issues
Security Hotspots
ChangesChanges
sequenceDiagram
participant BW as BraveWalletService
participant ZWS as ZCashWalletService
participant OSS as OrchardSyncState
participant OS as OrchardStorage
participant Seq as SequencedTaskRunner
BW->>ZWS: new ZCashWalletService(keyring_service, zcash_rpc)
BW->>OSS: OrchardSyncState::CreateSyncStateSequence()
OSS-->>BW: scoped_refptr<SequencedTaskRunner>
BW->>OSS: OrchardSyncState::CreateSyncState(zcash_data_path)
OSS->>OS: new OrchardStorage(path/orchard.db)
Note over OS: DETACH_FROM_SEQUENCE
OSS-->>BW: unique_ptr<OrchardSyncState>
BW->>ZWS: SetupSyncState(sequence, sync_state)
ZWS->>Seq: SequenceBound(sequence, move(sync_state))
Note over Seq: OrchardSyncState now lives on dedicated sequence
Note over ZWS: Later, during operation:
ZWS->>ZWS: CreateActionContext(account_id)
ZWS-->>ZWS: ZCashActionContext{rpc, addr, sync_state, account}
ZWS->>Seq: sync_state.AsyncCall(...)
Seq->>OSS: method call on dedicated sequence
OSS->>OS: database operation
OS-->>OSS: result
OSS-->>Seq: result
Seq-->>ZWS: callback with result
|
a4b46ba to
05154d0
Compare
Resolves brave/brave-browser#53026