Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make closeChannel callable by anybody with sigs #1124

Merged
merged 5 commits into from
Jul 15, 2019

Conversation

pirapira
Copy link
Contributor

On this commit pytest runs successfully. Lint does not work, and
some function names sound wrong.

@pirapira
Copy link
Contributor Author

This is a part of #1123.

On this commit pytest runs successfully.  Lint does not work, and
some function names sound wrong.
@pirapira pirapira force-pushed the close-channel-by-anybody branch from f800426 to b1d18d4 Compare July 15, 2019 08:06
@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

Merging #1124 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1124   +/-   ##
======================================
  Coverage      81%     81%           
======================================
  Files          21      21           
  Lines        1411    1411           
  Branches      179     179           
======================================
  Hits         1143    1143           
  Misses        228     228           
  Partials       40      40

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48c380b...b1d18d4. Read the comment docs.

@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

Merging #1124 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1124   +/-   ##
======================================
  Coverage      81%     81%           
======================================
  Files          21      21           
  Lines        1411    1411           
  Branches      179     179           
======================================
  Hits         1143    1143           
  Misses        228     228           
  Partials       40      40

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48c380b...b96b53c. Read the comment docs.

Copy link
Contributor

@andrevmatos andrevmatos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thank you!

@pirapira
Copy link
Contributor Author

Yay!

@pirapira pirapira merged commit 463b5e5 into raiden-network:master Jul 15, 2019
@pirapira pirapira deleted the close-channel-by-anybody branch July 15, 2019 16:01

// This is the block number at which the channel can be settled.
channel.settle_block_number += uint256(block.number);

// The closing participant must have signed the balance proof.
address recovered_closing_participant_address = recoverAddressFromBalanceProofCounterSignature(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pirapira: This uses MessageTypeId.BalanceProofUpdate. Shouldn't we use MessageTypeId.BalanceProof, instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right because these are two different messages. I'll file a PR (it's a bug fix, not a new feature).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pirapira added a commit to pirapira/spec that referenced this pull request Sep 3, 2019
This follows the implementation change made in
raiden-network/raiden-contracts#1124

Now that anybody can call closeChannel() on behalf of the closing
party, the call now takes a signature of the closing party.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants