-
Notifications
You must be signed in to change notification settings - Fork 256
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
Add Orchard support to fees & transaction proposals. #1060
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
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.
Reviewed as of 4283338.
fddc51c
to
013faf6
Compare
013faf6
to
48836c4
Compare
48836c4
to
66eeb8f
Compare
42de3a2
to
94c7eef
Compare
2a21330
to
a7e054d
Compare
d20bbb0
to
4091121
Compare
4091121
to
cd2ee5a
Compare
Note::Orchard(_) => { | ||
// FIXME: Implement this once `Proposal` has been refactored to | ||
// include Orchard notes. | ||
panic!("Orchard spends are not yet supported"); |
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.
Added #1096
Some(memo), | ||
)) | ||
} | ||
ShieldedProtocol::Orchard => { | ||
unimplemented!("FIXME: implement Orchard change output creation.") |
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.
Added #1095
#[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. |
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.
This could probably just be a TODO
, not a FIXME
1384727
to
56609f3
Compare
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.
Reviewed as of 56609f3.
98eb7cd
to
803e3b4
Compare
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.
Reviewed as of 803e3b4.
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
force-pushed to address remaining issues. |
(ShieldedProtocol::Sapling, 1, 0) | ||
} else { | ||
// For all other transactions, send change to Sapling. | ||
// FIXME: Change this to Orchard once Orchard outputs are enabled. |
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.
Added #1101
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.
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.
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.
utACK 24ebe4c
Now builds atop #1090
Part of #403.
Closes #1094.
Closes #1097.