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

Merge 'cardano-wallet-launcher' & 'cardano-wallet' together #414

Merged
merged 23 commits into from
Jun 14, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Jun 14, 2019

Issue Number

#368

Overview

  • I have introduced a new 'launch' command to do what cardano-wallet-launcher used to do.
  • I have removed the 'cardano-wallet-launcher' executable and replaced occurences of it in the tests by cardano-wallet launch
  • I have renamed cardano-wallet server to cardano-wallet serve as discussed briefly on slack
  • I have enabled --port and --random-port options for the launch command
  • I have slightly adjusted launcher code to use the new logging infrastructure

Comments

@KtorZ KtorZ self-assigned this Jun 14, 2019
--state <STRING> address state: either used or unused
--state-dir <DIR> write wallet state (blockchain and database) to this directory
Copy link
Member Author

Choose a reason for hiding this comment

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

I've sorted all the options alphabetically.

out `shouldContain` "cardano-wallet-launcher"
c `shouldBe` ExitSuccess
forM_ ["-h", "--help"] test

Copy link
Member Author

Choose a reason for hiding this comment

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

The same tests already exist for cardano-wallet

Copy link
Collaborator

@Anviking Anviking left a comment

Choose a reason for hiding this comment

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

lgtm based on a moderately quick look

@KtorZ KtorZ force-pushed the KtorZ/368/merge-cardano-launcher branch 3 times, most recently from 3af8dba to 14589c9 Compare June 14, 2019 19:12
KtorZ and others added 7 commits June 14, 2019 21:55
There's a non-significant cost with the use of 'fixtureWallet' since it needs to restore a funded wallet
and wait until restoration. We also only have a limited number of those wallets, so it's better to keep
them for when we actually really need funded wallets. When testing parsing errors or wrong headers, there's
no need for demanding a wallet with funds
And right now, it's making the test fail because we do need a funded wallet to make this test. So it'll be best
to re-introduce it as part of a separate scenario, that we only run for the bridge
This takes the cardano-sl/cardano-shell NodeIPC code and splits the
general nodejs child_process IPC protocol out from the
Daedalus/Cardano specific protocol, improves the exception handling,
changes the logging, and just makes it simpler.
@KtorZ KtorZ force-pushed the KtorZ/368/merge-cardano-launcher branch from 14589c9 to 725c822 Compare June 14, 2019 19:56
@KtorZ KtorZ merged commit 1d233eb into master Jun 14, 2019
@KtorZ KtorZ deleted the KtorZ/368/merge-cardano-launcher branch June 14, 2019 20:28
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.

None yet

4 participants