lnwallet: add AcceptedHtlcTimeoutWitnessSize to size.go

This commit is contained in:
Olaoluwa Osuntokun 2018-01-16 18:03:40 -08:00
parent 774ec5b528
commit a9d451e46d
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 7 additions and 0 deletions

View File

@ -257,6 +257,13 @@ const (
AcceptedHtlcScriptSize = 3*1 + 20 + 5*1 + 33 + 7*1 + 20 + 4*1 +
33 + 5*1 + 4 + 5*1
// AcceptedHtlcTimeoutWitnessSize: 214
// - number_of_witness_elements: 1 byte
// - sender_sig: 73 bytes
// - nil_length: 1 byte
// - witness_script: (accepted_htlc_script)
AcceptedHtlcTimeoutWitnessSize = 1 + 73 + 1 + AcceptedHtlcScriptSize
// AcceptedHtlcSuccessWitnessSize 325 bytes
// - number_of_witness_elements: 1 byte
// - nil_length: 1 byte