Parity-ethereum: Enable/disable in stratum section stratum of config?

Created on 20 Oct 2018  路  9Comments  路  Source: openethereum/parity-ethereum

Looking at this page: https://wiki.parity.io/Configuring-Parity-Ethereum.html

I see the --stratum option on the command line but I don't see a toml option to enable stratum. Is this one of those things that is right in front of me that I can't see?

F8-enhancement 馃帄 M2-config 馃搨

All 9 comments

@stone212

It is sufficient to just add [stratum] in your toml file but we should add a enable/disable option to that for clarity!

Such as

[stratum]
disable = true

```

@niklasad1 Yes that would help.

I tried the most reasonable (to me) thing and that was:

[mining]
stratum = enabled (also tried:  yes | definitely | please | turn-it-the-f@#!-on)

@joshua-mir @niklasad1

Just for clarity. If you are already making a change I recommend making the one I posted. It uses an already existing [category] and makes more logical sense (to me at least.)

@stone212 Stratum is its own category because it has configuration options of its own. Ie,

[stratum]
# Stratum Server will be running on port 8007.
port = 8007
# Secret for authorizing Stratum server for peers.
secret = "Yellow"

I agree that it might be better to have a enable/disable option though. Should I reopen as a feature request @niklasad1?

@joshua-mir Yes, please do

Personally favor disable = true/false so existing configs with this quirk aren't broken. But the behavior is weird because it's disabled by default unless the [stratum] section is present 馃

should a different toml file be added for stratum or would it be wiser to add them to the exisiting toml files?

Doesn't make sense not to just use the [stratum] section of the existing config - separate files should only be used for things like passwords

Closed by #10521

Was this page helpful?
0 / 5 - 0 ratings

Related issues

barakman picture barakman  路  3Comments

stone212 picture stone212  路  3Comments

famfamfam picture famfamfam  路  3Comments

mr-older picture mr-older  路  3Comments

retotrinkler picture retotrinkler  路  3Comments