Skip to content
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

How to run it in SPV mode? #8

Closed
ales-tsurko opened this issue Nov 30, 2018 · 3 comments
Closed

How to run it in SPV mode? #8

ales-tsurko opened this issue Nov 30, 2018 · 3 comments

Comments

@ales-tsurko
Copy link

I've tried all of these variants in bcoin.conf:

spv: true
node-spv: true
wallet-spv: true
spv-node: true
spv-wallet: true
@ales-tsurko
Copy link
Author

Nevermind, I've solved it by adding Dockerfile as a build source for the docker-compose' service and changing the CMD in the Dockerfile. I have no clue why spv: true doesn't work though.

@pinheadmz
Copy link
Member

I've discovered this as well, spv: true doesn't work in a config file, only as a launch argument:
bcoin --spv

@pinheadmz
Copy link
Member

The reason is because there are two different types of node objects: FullNode and SPVNode, and those objects parse the config file. The parameter SPV therefore must be parsed before the rest of the configuration, so the correct object is instantiated. Then SPVNode or FullNode parses the rest of the config file.

pinheadmz added a commit to pinheadmz/bcoin that referenced this issue Nov 30, 2018
nodech pushed a commit to nodech/bcash that referenced this issue Jan 13, 2019
tuxcanfly pushed a commit to tuxcanfly/bcoin that referenced this issue Jan 19, 2019
tuxcanfly pushed a commit to tuxcanfly/bcoin that referenced this issue Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants