Skip to content

Commit

Permalink
Update 0080-defunding-a-channel.md
Browse files Browse the repository at this point in the history
  • Loading branch information
geoknee authored Aug 29, 2023
1 parent 3dfba12 commit 8eb7a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/protocol-tutorial/0080-defunding-a-channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Visually, we can see some of the on-chain funding for the channel has been trans

### Tracking on-chain storage

When a channel has been partially defunded using `transfer`, the [on-chain storage](./0040-lifecycle-of-a-channel.md#adjudicator-storage) is updated. To continue the defunding process, it is necessary to track sufficient information to supply the new outcome for the next call to `transfer` (which could be made by a different party).
When a channel has been finalized, and also when a channel has been (partially) defunded using `transfer`, the [on-chain storage](./0040-lifecycle-of-a-channel.md#adjudicator-storage) is updated. To continue the defunding process, it is necessary to track sufficient information to supply the new outcome for the next call to `transfer` (which could be made by a different party).

To do this, it is necessary to listen for `AllocationUpdated` events and to compute the new outcome using `computeTransferEffectsAndInteractions` off-chain helper function

Expand Down

0 comments on commit 8eb7a5a

Please sign in to comment.