mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
funding: remove protobufs.
Use our own structure with the information we need about HTLCs, and remove protobufs from the API. The is_funder() helper goes inside gather_updates.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -65,7 +65,10 @@ int main(int argc, char *argv[])
|
||||
sig.stype = SIGHASH_ALL;
|
||||
|
||||
/* Figure out cumulative delta since anchor. */
|
||||
cstate = gather_updates(ctx, o1, o2, a, commit_fee(o1, o2), argv + 6,
|
||||
cstate = gather_updates(ctx, o1, o2, a,
|
||||
commit_fee(o1->commitment_fee,
|
||||
o2->commitment_fee),
|
||||
argv + 6,
|
||||
&num_updates,
|
||||
&our_rhash, &their_rhash, &sig.sig);
|
||||
if (num_updates < 1)
|
||||
|
||||
Reference in New Issue
Block a user