-
Notifications
You must be signed in to change notification settings - Fork 809
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
Error: config must be a boolean. #561
Comments
The actual relevant collision is in bcfg: The desired behavior seems to want this as an option passed to wallet constructor, but because it's a plugin it doesn't have this same initialization as FullNode does. Simplest solution is to have |
@BluSyn Yeah, I think the core issue here is that the I tried another approach by using a different key to indicate whether or not to load the file, ( https://gist.github.com/tuxcanfly/8c09aea8c55c0db77f64a48bfd077039 Although the issue with passing down options to plugins still exists , this could be a simple fix until the issue is fixed in |
Caused by #535 merged on latest
master
.Previously you could specify a custom config path for node using
--config
orBCOIN_CONFIG
env.Example:
bcoin --config /secrets/bcoin.conf
This now causes bcoin to crash with:
Error: config must be a boolean.
config
option is used in two different places.I see two solutions.
node.config.bool('config')
tothis.config.bool('config')
, which would allow disabling config using--wallet-config false
CLI option. However this would preclude the ability to set a custom wallet config path like you can this node. Though this is currently unsupported, I think we should add this ability to make wallet options consistent with node options.wallet-disable-config: true
(!this.config.bool('disable-config')
)The text was updated successfully, but these errors were encountered: