Skip to content

Commit 1cb19fa

Browse files
rustyrussellRoasbeef
authored andcommitted
BOLT 5: fix annotation for to-local weight (no change in result).
Closes: lightning#314 Reported-by: nayuta-ueno (@ueno) Signed-off-by: Rusty Russell <[email protected]>
1 parent 176588f commit 1cb19fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

05-onchain.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,15 +576,15 @@ The *expected weight* is calculated as follows:
576576
- OP_IF: 1 byte
577577
- OP_DATA: 1 byte (revocationkey length)
578578
- revocationkey: 33 bytes
579-
- OP_CHECKSIG: 1 byte
580579
- OP_ELSE: 1 byte
581-
- OP_DATA: 1 byte (localkey length)
582-
- localkey: 33 bytes
583-
- OP_CHECKSIG_VERIFY: 1 byte
584580
- OP_DATA: 1 byte (delay length)
585581
- delay: 8 bytes
586582
- OP_CHECKSEQUENCEVERIFY: 1 byte
583+
- OP_DROP: 1 byte
584+
- OP_DATA: 1 byte (localkey length)
585+
- localkey: 33 bytes
587586
- OP_ENDIF: 1 byte
587+
- OP_CHECKSIG: 1 byte
588588

589589
to_local_penalty_witness: 160 bytes
590590
- number_of_witness_elements: 1 byte

0 commit comments

Comments
 (0)