Add Orchard support to fees & transaction proposals.#1060
Merged
Conversation
f2d6315 to
e5c086d
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1060 +/- ##
==========================================
- Coverage 66.45% 66.26% -0.20%
==========================================
Files 113 114 +1
Lines 10863 10999 +136
==========================================
+ Hits 7219 7288 +69
- Misses 3644 3711 +67 ☔ View full report in Codecov by Sentry. |
78ffa29 to
a216989
Compare
a216989 to
4283338
Compare
str4d
requested changes
Dec 8, 2023
fddc51c to
013faf6
Compare
013faf6 to
48836c4
Compare
48836c4 to
66eeb8f
Compare
42de3a2 to
94c7eef
Compare
2a21330 to
a7e054d
Compare
nuttycom
commented
Jan 4, 2024
d20bbb0 to
4091121
Compare
4091121 to
cd2ee5a
Compare
nuttycom
commented
Jan 5, 2024
Comment on lines
+603
to
606
| Note::Orchard(_) => { | ||
| // FIXME: Implement this once `Proposal` has been refactored to | ||
| // include Orchard notes. | ||
| panic!("Orchard spends are not yet supported"); |
nuttycom
commented
Jan 5, 2024
| )) | ||
| } | ||
| ShieldedProtocol::Orchard => { | ||
| unimplemented!("FIXME: implement Orchard change output creation.") |
nuttycom
commented
Jan 5, 2024
| #[cfg(not(feature = "orchard"))] | ||
| let orchard_out = NonNegativeAmount::ZERO; | ||
|
|
||
| // FIXME: this is a pretty naive strategy for selecting the pool to which change will be sent. |
Collaborator
Author
There was a problem hiding this comment.
This could probably just be a TODO, not a FIXME
1384727 to
56609f3
Compare
str4d
requested changes
Jan 5, 2024
98eb7cd to
803e3b4
Compare
str4d
requested changes
Jan 5, 2024
This modifies the `compute_balance` method to operate in a bundle-oriented fashion, which simplifies the API and makes it easier to elide Orchard functionality in the case that the `orchard` feature is not enabled.
803e3b4 to
1bd915e
Compare
Co-authored-by: Jack Grigg <jack@electriccoin.co>
1bd915e to
24ebe4c
Compare
Collaborator
Author
|
force-pushed to address remaining issues. |
nuttycom
commented
Jan 6, 2024
| (ShieldedProtocol::Sapling, 1, 0) | ||
| } else { | ||
| // For all other transactions, send change to Sapling. | ||
| // FIXME: Change this to Orchard once Orchard outputs are enabled. |
Contributor
There was a problem hiding this comment.
This change caused a clippy lint (identical blocks in both conditional cases), but I think that's fine for now if we're going to address 1101 soon.
str4d
approved these changes
Jan 9, 2024
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now builds atop #1090
Part of #403.
Closes #1094.
Closes #1097.