bitcoin/script: don't pass value for HTLC script.

We don't need it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2015-09-24 14:56:01 +09:30
parent 186736050f
commit 58a62e782d
4 changed files with 3 additions and 8 deletions

View File

@@ -116,12 +116,12 @@ int main(int argc, char *argv[])
if (received) {
redeemscript = scriptpubkey_htlc_recv(ctx, &pubkey1, &pubkey2,
u->amount, htlc_abstimeout,
htlc_abstimeout,
locktime, &revoke_hash,
&htlc_rhash);
} else {
redeemscript = scriptpubkey_htlc_send(ctx, &pubkey1, &pubkey2,
u->amount, htlc_abstimeout,
htlc_abstimeout,
locktime, &revoke_hash,
&htlc_rhash);
}