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

ICS30: Update callbacks #790

Merged
merged 1 commit into from
Jul 11, 2022
Merged

ICS30: Update callbacks #790

merged 1 commit into from
Jul 11, 2022

Conversation

AdityaSripal
Copy link
Member

Update based on #629

Copy link
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.

See my comment below.

@@ -101,6 +108,12 @@ function onChanOpenInit(
counterpartyChannelIdentifier,
appVersion, // note we only pass app version here
)
abortTransactionUnless(err != nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

If we call abortTransactionUnless here, is there a reason to return Error?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is true, but I'm just trying to stay consistent with the ICS26 function signature. In practice, the abortTransaction process is carried out by returning an error at this level.

@@ -130,6 +144,12 @@ function OnChanOpenTry(
cpAppVersion, // note we only pass counterparty app version here
appVersion, // only pass app version
)
abortTransactionUnless(err != nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@AdityaSripal AdityaSripal merged commit fcf8619 into master Jul 11, 2022
@AdityaSripal AdityaSripal deleted the aditya/30-cbs branch July 11, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

2 participants