Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

NC-2104 Clique and iBFT should not be defined by default in RPC APIs #635

Merged

Conversation

NicolasMassart
Copy link
Contributor

PR description

Clique and iBFT should not be defined by default in HTTP and Websocket RPC APIs options.
This PR removes the default values for both Clique and iBFT and removes the hard coded string used as default value for description and replaces it with a constant default that's can be changed in one place.

Fixed Issue(s)

fixes NC-2104

As toString() is used to display default values in CLI description and this is
not used anywhere else for RpcApi objects, it may have benn used for debug long
ago, but now we can use the simple string value as return from toString.
Then we are able to use the DEFAULT_JSON_RPC_APIS constant as default value
directly instead of hard coded defaults string in option that was probably used
because previous toString was not outputting correct representation. It may be
interesting to comment when some does this sort of hack.
…values

As toString() is used to display default values in CLI description and this is
not used anywhere else for RpcApi objects, it may have benn used for debug long
ago, but now we can use the simple string value as return from toString.
Then we are able to use the DEFAULT_JSON_RPC_APIS constant as default value
directly instead of hard coded defaults string in option that was probably used
because previous toString was not outputting correct representation. It may be
interesting to comment when some does this sort of hack.
Copy link
Contributor

@rain-on rain-on left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM.

@NicolasMassart NicolasMassart merged commit 11de8af into PegaSysEng:master Jan 24, 2019
@NicolasMassart NicolasMassart deleted the NC-2104_ibft_defaults branch January 30, 2019 16:34
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.

3 participants