mirror of
https://github.com/lightning/bolts.git
synced 2025-03-10 09:10:07 +01:00
BOLT 5: fix annotation for to-local weight (no change in result).
Closes: #314 Reported-by: nayuta-ueno (@ueno) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
176588fa0d
commit
1cb19fab70
1 changed files with 4 additions and 4 deletions
|
@ -576,15 +576,15 @@ The *expected weight* is calculated as follows:
|
||||||
- OP_IF: 1 byte
|
- OP_IF: 1 byte
|
||||||
- OP_DATA: 1 byte (revocationkey length)
|
- OP_DATA: 1 byte (revocationkey length)
|
||||||
- revocationkey: 33 bytes
|
- revocationkey: 33 bytes
|
||||||
- OP_CHECKSIG: 1 byte
|
|
||||||
- OP_ELSE: 1 byte
|
- OP_ELSE: 1 byte
|
||||||
- OP_DATA: 1 byte (localkey length)
|
|
||||||
- localkey: 33 bytes
|
|
||||||
- OP_CHECKSIG_VERIFY: 1 byte
|
|
||||||
- OP_DATA: 1 byte (delay length)
|
- OP_DATA: 1 byte (delay length)
|
||||||
- delay: 8 bytes
|
- delay: 8 bytes
|
||||||
- OP_CHECKSEQUENCEVERIFY: 1 byte
|
- OP_CHECKSEQUENCEVERIFY: 1 byte
|
||||||
|
- OP_DROP: 1 byte
|
||||||
|
- OP_DATA: 1 byte (localkey length)
|
||||||
|
- localkey: 33 bytes
|
||||||
- OP_ENDIF: 1 byte
|
- OP_ENDIF: 1 byte
|
||||||
|
- OP_CHECKSIG: 1 byte
|
||||||
|
|
||||||
to_local_penalty_witness: 160 bytes
|
to_local_penalty_witness: 160 bytes
|
||||||
- number_of_witness_elements: 1 byte
|
- number_of_witness_elements: 1 byte
|
||||||
|
|
Loading…
Add table
Reference in a new issue