anchor: fix anchor production for RIPEMD hash.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2015-06-04 14:13:13 +09:30
parent 617d21eb43
commit 3ed87c5e6f

View file

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