Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. - claimRedeemed(redeemedClaim: claim)
  2.  - let openingCommitmentsHash = hash(state.parameters.openingCommitments)
  3.  - assert self.successfulOpenings[openingCommitmentsHash] - checks whether the
  4. channel was successfully opened
  5. - if so, add to the withdrawal progress:
  6.    self.openingClaimsInProgress[openingCommitmentsHash].redeemedCoins +=
  7. claim.end - claim.start
  8.  - let claimInProgress = self.openingClaimsInProgress[openingCommitmentsHash]
  9.  - if claimInProgress.redeemedCoins == claimInProgress.totalCoins,
  10. then forward the totalCoins to the state.parameters.onChainChannel(state.parameters.callData) - the opening has been fully claimed and the on-chain channel may take over.
  11.  - Otherwise, not all money in the channel has been redeemed from the plasma contract yet,
  12. so we must wait.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement