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

allow counterparty to close channel before cool down period #675

Merged
merged 2 commits into from Nov 23, 2020

Conversation

nionis
Copy link
Contributor

@nionis nionis commented Nov 23, 2020

Fixes #252

@nionis nionis merged commit d5fbda9 into master Nov 23, 2020
@nionis nionis deleted the fix/allow-faster-channel-closure branch November 23, 2020 13:49
@@ -37,6 +37,7 @@ contract HoprChannels is IERC777Recipient, ERC1820Implementer {
* stateCounter mod 10 == 2: open
* stateCounter mod 10 == 3: pending
*/
bool closureByPartyA; // channel closure was initiated by party A
}
Copy link
Member

Choose a reason for hiding this comment

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

Here we should decrease the size of a previous entry in the struct to keep the total size of the struct to <= 64 bytes (2 words). I suggest to decrease the closureTime to uint32 which is going to be fine until Sunday, February 7, 2106 6:28:15 AM.

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.

HoprChannels should allow for counterparty to close channel without waiting
3 participants