1
0
Fork 0
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:
Rusty Russell 2017-12-11 20:07:01 +10:30 committed by Olaoluwa Osuntokun
parent 176588fa0d
commit 1cb19fab70

View file

@ -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