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

Fix Cosmos config initialisation #64

Merged
merged 2 commits into from
Nov 13, 2020
Merged

Fix Cosmos config initialisation #64

merged 2 commits into from
Nov 13, 2020

Conversation

jazg
Copy link
Member

@jazg jazg commented Nov 13, 2020

There are several functions within the Cosmos SDK that make use of a global configuration to fetch the Bech32 prefix for an account. #49 updated the Multichain to set this prefix before each operation that interacts with the Cosmos SDK to allow us to support multiple Cosmos-compatible chains in the future. This has the obvious downside of potentially causing panics if the functions are called concurrently, and due to this we have decided to move away from this in favour of a config initialisation on boot. The downside to this is we cannot easily add support for other Cosmos-compatible chains in the near future because they will all use different prefixes. However, this issue is being tracked in the Cosmos SDK (cosmos/cosmos-sdk#7448) and is aimed to be resolved before the next major release.

@jazg jazg requested a review from loongy as a code owner November 13, 2020 03:44
@loongy loongy merged commit f52dd89 into master Nov 13, 2020
@loongy loongy deleted the fix/cosmos-config branch November 13, 2020 03:47
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.

2 participants