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

connectHorizontal open any channel #689

Merged
merged 2 commits into from
Mar 11, 2024
Merged

connectHorizontal open any channel #689

merged 2 commits into from
Mar 11, 2024

Conversation

ermalkaleci
Copy link
Contributor

No description provided.

@ermalkaleci
Copy link
Contributor Author

@NachoPal this should fix the channel opening

@ermalkaleci ermalkaleci merged commit e23208c into master Mar 11, 2024
6 checks passed
@ermalkaleci ermalkaleci deleted the auto-hrmp branch March 11, 2024 12:40
@@ -30,5 +30,15 @@ export const connectHorizontal = async (parachains: Record<number, Blockchain>)
}
}
})

const hrmpHeads = await chain.head.read('BTreeMap<u32, H256>', meta.query.parachainSystem.lastHrmpMqcHeads)
if (hrmpHeads && !process.env.DISABLE_AUTO_HRMP) {
Copy link
Member

Choose a reason for hiding this comment

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

best to avoid env in the core package. they are global variables so all the reason to avoid global variables applies.
we should just pass arguments into here, and should be the cli package to handle envs. also need to document them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes we have a few places when we use env, we need to address them

Copy link
Member

Choose a reason for hiding this comment

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

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.

None yet

2 participants