Skip to content

Commit

Permalink
5%
Browse files Browse the repository at this point in the history
  • Loading branch information
thomash-acinq committed Jul 19, 2023
1 parent 4a90ec2 commit d70ca33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ case class Commitment(fundingTxIndex: Long,
}
}
val occupancy = (outgoingHtlcs.size.toDouble / maxAcceptedHtlcs).max(htlcValueInFlight.toLong.toDouble / allowedHtlcValueInFlight.toLong.toDouble)
if (confidence < occupancy) {
if (confidence + 0.05 < occupancy) {
return Left(ConfidenceTooLow(params.channelId, confidence, occupancy))
}

Expand Down

0 comments on commit d70ca33

Please sign in to comment.