From 3ed87c5e6fcdace34ce8ef30cec5b82606782ac7 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 4 Jun 2015 14:13:13 +0930 Subject: [PATCH] anchor: fix anchor production for RIPEMD hash. Signed-off-by: Rusty Russell --- bitcoin_script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin_script.c b/bitcoin_script.c index eba62f396..682666306 100644 --- a/bitcoin_script.c +++ b/bitcoin_script.c @@ -146,7 +146,7 @@ u8 *scriptpubkey_pay_to_pubkeyhash(const tal_t *ctx, add_op(&script, OP_DUP); add_op(&script, OP_HASH160); - add_push_bytes(&script, addr, sizeof(addr)); + add_push_bytes(&script, addr, sizeof(*addr)); add_op(&script, OP_EQUALVERIFY); add_op(&script, OP_CHECKSIG);