From 1cb19fab700ef07966db949e86f8ac1a6b035f6e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 11 Dec 2017 20:07:01 +1030 Subject: [PATCH] BOLT 5: fix annotation for to-local weight (no change in result). Closes: #314 Reported-by: nayuta-ueno (@ueno) Signed-off-by: Rusty Russell --- 05-onchain.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/05-onchain.md b/05-onchain.md index 8f204b5..9351cc8 100644 --- a/05-onchain.md +++ b/05-onchain.md @@ -576,15 +576,15 @@ The *expected weight* is calculated as follows: - OP_IF: 1 byte - OP_DATA: 1 byte (revocationkey length) - revocationkey: 33 bytes - - OP_CHECKSIG: 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) - delay: 8 bytes - OP_CHECKSEQUENCEVERIFY: 1 byte + - OP_DROP: 1 byte + - OP_DATA: 1 byte (localkey length) + - localkey: 33 bytes - OP_ENDIF: 1 byte + - OP_CHECKSIG: 1 byte to_local_penalty_witness: 160 bytes - number_of_witness_elements: 1 byte