Skip to content

Commit 976df7e

Browse files
t-bastsstone
andauthored
Update eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala
Co-authored-by: Fabrice Drouin <[email protected]>
1 parent 3a40155 commit 976df7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ object Transactions {
9797
}
9898

9999
sealed trait SegwitV0CommitmentFormat extends CommitmentFormat {
100+
// see https://github.com/lightning/bolts/blob/master/03-transactions.md#appendix-a-expected-weights
101+
// funding input weight = 4 * funding_input_size + witness_size = 4 * 41 + 222 = 386
100102
override val fundingInputWeight = 386
101103
}
102104

0 commit comments

Comments
 (0)