lnwallet: update size.go to add the weight of the success+timeout txns

This commit updates the constants in size.go to include the weight of
the HTLC success and timeout transactions. These values are required in
order to properly compute the fee required for a particular HTLC
transaction. The fee will change depending on if the HTLC is incoming
or outgoing.
This commit is contained in:
Olaoluwa Osuntokun 2017-07-29 18:21:41 -07:00
parent 360876944e
commit 71e47283cf
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -112,6 +112,13 @@ const (
// Handling", based on the fact that we need to sweep all HTLCs within
// one penalty transaction.
MaxHTLCNumber = 1253
// HtlcTimeoutWeight is the weight of the HTLC timeout transaction
// which will transition an outgoing HTLC to the delay-and-claim state.
HtlcTimeoutWeight = 663
// HtlcSuccessWeight is the weight of the HTLC success transaction
// which will transition an incoming HTLC to the delay-and-claim state.
HtlcSuccessWeight = 703
)
// estimateCommitTxWeight estimate commitment transaction weight depending on