-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ZCash] Implement Zcash sync process and Orchard inputs spending #27018
base: master
Are you sure you want to change the base?
Conversation
A Storybook has been deployed to preview UI for the latest push |
// Create shielded transaction | ||
zcash_wallet_service_->CreateShieldedTransaction( | ||
chain_id, from->Clone(), zec_tx_data->to, zec_tx_data->amount, memo, | ||
base::BindOnce(&ZCashTxManager::ContinueAddUnapprovedTransaction, | ||
weak_factory_.GetWeakPtr(), chain_id, from.Clone(), | ||
origin, std::move(callback))); | ||
} else { | ||
// Create transparent to shielded transaction | ||
zcash_wallet_service_->CreateShieldTransaction( | ||
chain_id, from->Clone(), zec_tx_data->to, zec_tx_data->amount, memo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it have some better naming?
CreateShieldedTransaction
CreateShieldTransaction
|
||
// ZCashScanBlocksTask scans blocks from the last scanned block to the provided | ||
// right border. Splits this range to subranges and uses a bunch of smaller | ||
// tasks to process. Current implementation uses sequentally scanning. Parallel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sequential
@@ -259,6 +259,23 @@ const GURL MakeGetCompactBlocksURL(const GURL& base_url) { | |||
return base_url.ReplaceComponents(replacements); | |||
} | |||
|
|||
const GURL MakeGetSubtreeRootsURL(const GURL& base_url) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not return values marked with const. This applies to other functions in this file
const GURL
// DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
// return storage_.UpdateSubtreeRoots(account_id, start_index, roots); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover it seems
Resolves brave/brave-browser#42898
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: