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:
parent
360876944e
commit
71e47283cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user