Skip to content

Commit

Permalink
Merge pull request #1605 from statechannels/geoknee-patch-4
Browse files Browse the repository at this point in the history
Update 0080-defunding-a-channel.md
  • Loading branch information
geoknee authored Aug 29, 2023
2 parents b94617a + 8eb7a5a commit 71fc121
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 71fc121

Please sign in to comment.