Files
lightning/daemon
Rusty Russell 2bf43f1ebd daemon: handle HTLC as per BOLT #2 algorithm.
From BOLT#2 (rev 8ee09e749990a11fa53bea03d5961cfde4be4616):

   Thus each node (conceptually) tracks:
...
   3. Two *unacked changesets*: one for the local commitment (their proposals) and one for the remote (our proposals)
   4. Two *acked changesets*: one for the local commitment (our proposals, acknowledged) and one for the remote (their proposals, acknowledged).

   (Note that an implementation MAY optimize this internally, for
   example, pre-applying the changesets in some cases).

In our case, we apply the unacked changes immediately into
staging_cstate, and save them in an unacked_changes array.  That array
gets applied to staging_cstate as soon as it's acked (we only allow
one outstanding update_commit, so we only need one array).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-05-26 15:25:24 +09:30
..
2016-01-22 06:41:47 +10:30
2016-01-22 06:45:28 +10:30
2016-01-22 06:41:49 +10:30
2016-01-22 06:45:28 +10:30
2016-01-22 06:41:48 +10:30
2016-05-10 06:28:17 +09:30
2016-01-22 06:41:48 +10:30
2016-01-22 06:41:48 +10:30
2016-05-10 06:28:17 +09:30
2016-05-10 06:28:17 +09:30
2016-01-22 06:41:47 +10:30
2016-01-22 06:41:47 +10:30
2016-05-06 11:56:55 +09:30
2016-05-10 06:26:09 +09:30
2016-05-10 06:26:09 +09:30
2016-05-04 16:10:39 +09:30
2016-05-04 16:10:39 +09:30