Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

[DEVOPS-1099] make the wallet documentation optional, and default it to off #3771

Merged
merged 1 commit into from
Nov 5, 2018

Conversation

cleverca22
Copy link
Contributor

Description

by default, it binds to 127.0.0.1:8091 and there is no way to turn it off, causing conflicts whenever you try to run 2 wallets at once

Linked issue

Type of change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🛠 New feature (non-breaking change which adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
  • 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
  • 🔨 New or improved tests for existing code
  • ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

  • I have read the style guide document, and my code follows the code style of this project.
  • If my code deals with exceptions, it follows the guidelines.
  • I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.
  • CHANGELOG entry has been added and is linked to the correct PR on GitHub.

Testing checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.

QA Steps

Screenshots (if available)

@KtorZ
Copy link
Contributor

KtorZ commented Oct 20, 2018

What about --wallet-doc-address ?

-- The corresponding wallet documention, served as a different
-- server which doesn't require client x509 certificates to
-- connect, but still serves the doc through TLS
, maybe [] (\x -> [x]) (Plugins.docServer params)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why moving the worker's name outside?

, maybe [] (pure . ("doc server",)) (Plugins.docServer params)

docServer (NewWalletBackendParams WalletBackendParams{..}) = const $
serveDocImpl
-> Maybe (Text, Plugin Kernel.WalletMode)
docServer (NewWalletBackendParams WalletBackendParams{..}) = maybe Nothing (\addr -> Just ("doc worker", makeWalletServer addr)) walletDocAddress
Copy link
Contributor

Choose a reason for hiding this comment

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

Cf comment above :)

= makeWalletServer <$> walletDocAddress

@tatyanavych
Copy link
Contributor

Target Version is 2.0.0

@cleverca22 cleverca22 changed the base branch from develop to release/2.0.0 November 5, 2018 15:13
@disassembler disassembler merged commit ac25049 into release/2.0.0 Nov 5, 2018
@disassembler disassembler deleted the devops-1099 branch November 5, 2018 21:15
@KtorZ KtorZ mentioned this pull request Jan 4, 2019
12 tasks
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.

4 participants