Skip to content

Commit

Permalink
Problem: migrated key related log breaks json.loads (#112)
Browse files Browse the repository at this point in the history
* Problem: migrated key related log breaks json.loads

* add migrate_keystore
  • Loading branch information
mmsqe authored Jan 5, 2024
1 parent 1c35155 commit 4b03f1a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [#104](https://github.com/crypto-com/pystarport/pull/104) support json_rpc_addr in relayer config
- [#109](https://github.com/crypto-com/pystarport/pull/109) add feegrants in relayer config
- [#110](https://github.com/crypto-com/pystarport/pull/110) add event_query_tx_for to allow subscribe and wait for transaction.
- [#112](https://github.com/crypto-com/pystarport/pull/112) add cmd for migrate keystore.

*Feb 7, 2023*

Expand Down
3 changes: 3 additions & 0 deletions pystarport/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,9 @@ def transfer_nft_token(
def event_query_tx_for(self, hash, i=0):
return self.cosmos_cli(i).event_query_tx_for(hash)

def migrate_keystore(self, i=0):
return self.cosmos_cli(i).migrate_keystore()


def start_cluster(data_dir):
cmd = [
Expand Down
3 changes: 3 additions & 0 deletions pystarport/cosmoscli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,3 +1067,6 @@ def event_query_tx_for(self, hash):
stderr=subprocess.DEVNULL,
)
)

def migrate_keystore(self):
return self.raw("keys", "migrate", home=self.data_dir)

0 comments on commit 4b03f1a

Please sign in to comment.