Skip to content

ICS4: Channel Upgradability Spec#677

Merged
AdityaSripal merged 13 commits intomasterfrom
aditya/chan-upgrade
Mar 23, 2022
Merged

ICS4: Channel Upgradability Spec#677
AdityaSripal merged 13 commits intomasterfrom
aditya/chan-upgrade

Conversation

@AdityaSripal
Copy link
Copy Markdown
Contributor

No description provided.

@AdityaSripal AdityaSripal marked this pull request as ready for review March 14, 2022 17:49
Comment on lines +379 to +383
if !IsCompatible(counterpartyChannel, proposedUpgradeChannel) {
restoreChannel()
return
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this seems like leftover code from crossing hellos case handled above?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Indeed. counterpartyChannel is not defined.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry my mistake. Needed to define and prove counterpartyChannel earlier. counterpartyChannel is the channel that initiator upgraded to.

proposedUpgradeChannel is the channel that TRY is going to upgrade to.

Similar to the connection upgrade channel there needs to be some check on compatibility that will not be specified here since it is upgrade-specific.

AdityaSripal and others added 2 commits March 22, 2022 14:27
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@mpoke mpoke left a comment

Choose a reason for hiding this comment

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

Looks good. ACK the protocol. See my comments below.


// call modules onChanUpgradeAck callback
module = lookupModule(portIdentifier)
err = module.onChanUpgradeAck(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In #686, onChanUpgradeAck returns no error.

@AdityaSripal AdityaSripal requested a review from mpoke March 23, 2022 16:30
Copy link
Copy Markdown
Contributor

@mpoke mpoke left a comment

Choose a reason for hiding this comment

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

Great work. Just one minor comment.

@AdityaSripal AdityaSripal merged commit 32663b6 into master Mar 23, 2022
@AdityaSripal AdityaSripal deleted the aditya/chan-upgrade branch March 23, 2022 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants