You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sample-btcd.conf file is provided in the source code in the btcd directory. If a comment is placed at the end of the line of a valid setting, the btcd parser will interpret the comment as a setting.
with btcd.conf setting of:
listen=:8333 ; all interfaces on port 8333
example error message:
19:34:03 2014-06-08 [WRN] SRVR: Can't listen on :8333 ; all interfaces on port 8333: listen tcp4: unknown port tcp4/8333 ; all interfaces on port 8333
If a semicolon can be a valid entry in a setting, the perhaps modifying the sample-btcd.conf file is all that is needed. If a semicolon is never valid, or needs separate escaping, trimming at the ; may be all that is needed.
The text was updated successfully, but these errors were encountered:
Good point. The ini config parser that is part of the go-flags package doesn't handle them at the end of the line. Either a pull request to the upstream go-flags should be provided to allow this or the sample config file should be changed to not show the examples with trailing comments like that.
The sample-btcd.conf file is provided in the source code in the btcd directory. If a comment is placed at the end of the line of a valid setting, the btcd parser will interpret the comment as a setting.
with btcd.conf setting of:
example error message:
If a semicolon can be a valid entry in a setting, the perhaps modifying the sample-btcd.conf file is all that is needed. If a semicolon is never valid, or needs separate escaping, trimming at the ; may be all that is needed.
The text was updated successfully, but these errors were encountered: