-
Notifications
You must be signed in to change notification settings - Fork 368
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
trivial clippy warning fixes #740
trivial clippy warning fixes #740
Conversation
lightning/src/ln/msgs.rs
Outdated
@@ -41,7 +41,7 @@ use util::ser::{Readable, Writeable, Writer, FixedLengthReader, HighZeroBytesDro | |||
use ln::channelmanager::{PaymentPreimage, PaymentHash, PaymentSecret}; | |||
|
|||
/// 21 million * 10^8 * 1000 | |||
pub(crate) const MAX_VALUE_MSAT: u64 = 21_000_000_0000_0000_000; |
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 is very specifically written this way because the number is 21 million * 10^8, and thus grouping the 8 into 2*4 is more readable. Same with the other SATS numbers.
490c211
to
c8e49aa
Compare
Codecov Report
@@ Coverage Diff @@
## main #740 +/- ##
==========================================
- Coverage 91.99% 91.95% -0.04%
==========================================
Files 37 37
Lines 20108 20108
==========================================
- Hits 18498 18490 -8
- Misses 1610 1618 +8
Continue to review full report at Codecov.
|
When we receive an inbound HTLC from a peer on an inbound channel, make sure the funder can still cover the additional on-chain cost of the HTLC while maintaining their channel reserve. When we're sending an outbound HTLC, make sure the funder can still cover the additional on-chain cost of the HTLC while maintaining their channel reserve. + implement fee spike buffer for channel initiators sending payments. Also add an additional spec-deviating fee spike buffer on the receiving side (but don't close the channel if this reserve is violated, just fail the HTLC). From lightning-rfc PR lightningdevkit#740. Co-authored-by: Matt Corallo <git@bluematt.me> Co-authored-by: Valentine Wallace <vwallace@protonmail.com>
When we receive an inbound HTLC from a peer on an inbound channel, make sure the funder can still cover the additional on-chain cost of the HTLC while maintaining their channel reserve. When we're sending an outbound HTLC, make sure the funder can still cover the additional on-chain cost of the HTLC while maintaining their channel reserve. + implement fee spike buffer for channel initiators sending payments. Also add an additional spec-deviating fee spike buffer on the receiving side (but don't close the channel if this reserve is violated, just fail the HTLC). From lightning-rfc PR lightningdevkit#740. Co-authored-by: Matt Corallo <git@bluematt.me> Co-authored-by: Valentine Wallace <vwallace@protonmail.com>
Trvial changes to fix
twoone clippy warning :clippy::inconsistent_digit_groupingandclippy::write_with_newline warnings
.