This repository was archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Update chain id arguments handling #129
Open
r8d8
wants to merge
9
commits into
ETCDEVTeam:master
Choose a base branch
from
r8d8:issue/tx_sign
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
62329e5
Update chain id arg
r8d8 23b886b
Add migrattion command
r8d8 2c5a32f
Merge remote-tracking branch 'emerald/master' into issue/tx_sign
r8d8 9512ebb
Update bats tests to use new chain id
r8d8 63dd8d8
Merge branch 'issue/tx_sign' of github.com:r8d8/emerald-cli into issu…
r8d8 71258dc
Update formatting
r8d8 8d380f3
Merge remote-tracking branch 'upstream/master' into issue/tx_sign
r8d8 b8fe97d
Update README.md
r8d8 375d600
Merge remote-tracking branch 'upstream/master' into issue/tx_sign
r8d8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| /target/ | ||
| **/*.rs.bk | ||
| *.rs.bk | ||
| .idea/ | ||
| *.iml | ||
| Cargo.lock | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| //! # Storage migration related commands | ||
|
|
||
| use super::ExecResult; | ||
| use std::path::Path; | ||
|
|
||
| /// Migrate storage from old scheme to new | ||
| /// | ||
| /// # Arguments: | ||
| /// | ||
| /// * | ||
| /// | ||
| // /home/k2/.emerald | ||
| // ├── [4.0K] mainnet | ||
| // │ ├── [4.0K] addressbook | ||
| // │ ├── [4.0K] contracts | ||
| // │ │ ├── [1.8K] 0x0047201aed0b69875b24b614dda0270bcd9f11cc.json | ||
| // │ │ └── [ 78] 0x085fb4f24031eaedbc2b611aa528f22343eb52db.json | ||
| // │ └── [4.0K] keystore | ||
| // ├── [4.0K] morden | ||
| // │ ├── [4.0K] addressbook | ||
| // │ ├── [4.0K] contracts | ||
| // │ └── [4.0K] keystore | ||
| // └── [4.0K] testnet | ||
| // ├── [4.0K] contracts | ||
| // └── [4.0K] keystore | ||
|
|
||
| pub fn migrate_cmd() -> ExecResult { | ||
| println!("{}", Path::new("/home/.emerald/mainnet").exists()); | ||
| println!("{}", Path::new("/home/.emerald/morden").exists()); | ||
| println!("{}", Path::new("/home/.emerald/testnet").exists()); | ||
|
|
||
| Ok(()) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
geth uses morden, why vault has own testnet instead?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ETH morden chain id is 2, ETC morden - 62
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should (or is?) CLI argument
etcbe synonym foretc-main?like
ethis implicit foreth-main?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and let's use
mainet/testnetinstead ofmain/test, to avoid confusion. I meanetc-mainnet(as a synonym to simplemainnet), notetc-mainwhich will be a totally new name