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

chore: Add IBC and Bank transfer enabler on EndBlocker #595

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Vvaradinov
Copy link
Contributor

Adds a new top level EndBlocker to enable IBC transfers and bank transfers at a certain hight still TBD.

)

// EnableTransfersHeight TODO: Set this to the height for mainnet once it gets closer to launch.
const EnableTransfersHeight = 10
Copy link
Collaborator

Choose a reason for hiding this comment

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

one thing I wonder is how to best disable it on testnet ? maybe build flag which on testnet sets it up math.MaxInt and on mainnet to desired value ? we already use BABYLON_BUILD_OPTIONS="testnet" flag to differentiate binary for testnet and mainnet 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One possible approach which is easy and straightforward is to restrict the handler to run only on a specific chain id. Since chain ids will be different between testnet and mainnet we can just check ctx.ChainID.

Copy link
Collaborator

Choose a reason for hiding this comment

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

oh true, sounds like good idea 👍 then we need to quickly decide on chain-id for mainnet

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