We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f271b2 + da19fcb commit 8cbdca3Copy full SHA for 8cbdca3
src/DotNetLightning.Core/Channel/ChannelError.fs
@@ -428,9 +428,8 @@ module internal AcceptChannelMsgValidation =
428
Ok()
429
430
let checkDustLimitIsLargerThanOurChannelReserve (state: Data.WaitForAcceptChannelData) msg =
431
- let reserve = ChannelConstantHelpers.getOurChannelReserve state.LastSent.FundingSatoshis
432
check
433
- msg.DustLimitSatoshis (>) reserve
+ msg.DustLimitSatoshis (>) state.LastSent.ChannelReserveSatoshis
434
"dust limit (%A) is bigger than our channel reserve (%A)"
435
436
let checkMinimumHTLCValueIsAcceptable (state: Data.WaitForAcceptChannelData) (msg: AcceptChannel) =
0 commit comments