Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

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
Collaborator

@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 requested review from DNK90 and huyngopt1994 April 19, 2023 09:43
@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.
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants