When running bcoin, how does one disable mining by default? I just want to run a full node without mining. There seems to be no config options to control it.
Asked
Active
Viewed 244 times
2
x70766c
- 23
- 3
-
Why do you assume `bcoin` is mining by default? I'd be extremely surprised if it was capable of mining by itself at all. – Pieter Wuille Feb 06 '20 at 19:45
-
1Mining is disabled by default, it must be switched on with rpc commands and like @PieterWuille said it can only usefully generate blocks for test networks. – pinhead Feb 06 '20 at 19:58
-
1@pinhead: I think that's an answer. :) – Murch Feb 07 '20 at 15:14
1 Answers
1
Mining is disabled by default, it must be switched on with RPC commands:
https://bcoin.io/api-docs/#rpc-calls-mining
Keep in mind without additional hardware, bcoin can only effectively generate blocks on test networks (like simnet and regtest). A bcoin full node can be used by a mining pool operator to generate block templates and ultimately find valid blocks, there has been at least one block mined on mainnet with a bcoin full node.
pinhead
- 4,932
- 2
- 23
- 38