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: abort if the private key is different from existed account #265

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

minh-bq
Copy link
Contributor

@minh-bq minh-bq commented Apr 19, 2023

  • fix: don't create account automatically

Currently, we automatically create account when no private key is provided and
there is not account in keystore. This behavior may lead to mistakes when
setting up node, so we remove this behavior in this commit.

  • fix: abort if the private key is different from existed account

This commit creates a subcommand check in account command of Ronin to check if
the corresponding account of provided private key exist in the imported account.
When starting Ronin from entrypoint.sh, if the provided private key is different
from imported account, the process is aborted.

Currently, we automatically create account when no private key is provided and
there is not account in keystore. This behavior may lead to mistakes when
setting up node, so we remove this behavior in this commit.
@minh-bq minh-bq force-pushed the fix/entrypoint branch 2 times, most recently from a46926d to 75148ee Compare April 19, 2023 10:20
This commit creates a subcommand check in account command of Ronin to check if
the corresponding account of provided private key exist in the imported account.
When starting Ronin from entrypoint.sh, if the provided private key is different
from imported account, the process is aborted.
cmd/ronin/accountcmd.go Show resolved Hide resolved
cmd/ronin/accountcmd.go Show resolved Hide resolved
@minh-bq minh-bq merged commit b4750ff into axieinfinity:master Apr 26, 2023
@minh-bq minh-bq deleted the fix/entrypoint branch April 26, 2023 04:33
andicrypt pushed a commit to andicrypt/ronin that referenced this pull request Nov 1, 2023
…infinity#265)

* fix: don't create account automatically

Currently, we automatically create account when no private key is provided and
there is not account in keystore. This behavior may lead to mistakes when
setting up node, so we remove this behavior in this commit.

* fix: abort if the private key is different from existed account

This commit creates a subcommand check in account command of Ronin to check if
the corresponding account of provided private key exist in the imported account.
When starting Ronin from entrypoint.sh, if the provided private key is different
from imported account, the process is aborted.
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