mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
create_commit_tx: don't use protobufs in the API.
Hand anchor details and pubkeys directly; this is what we want for the actual daemon which doesn't keep raw packets around. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
/* Now create our commitment tx. */
|
||||
proto_to_sha256(o1->revocation_hash, &rhash);
|
||||
commit = create_commit_tx(ctx, o1, o2, a, &rhash, cstate);
|
||||
commit = commit_tx_from_pkts(ctx, o1, o2, a, &rhash, cstate);
|
||||
|
||||
/* Check signature. */
|
||||
subscript = bitcoin_redeem_2of2(ctx, &pubkey1, &pubkey2);
|
||||
|
||||
Reference in New Issue
Block a user