<p>Mining is disabled by default, it must be switched on with RPC commands:</p>

<p><a href="https://bcoin.io/api-docs/#rpc-calls-mining" rel="nofollow noreferrer">https://bcoin.io/api-docs/#rpc-calls-mining</a></p>

<p>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 <a href="https://github.com/bcoin-org/bcoin/issues/160" rel="nofollow noreferrer">at least one block</a> mined on mainnet with a bcoin full node.</p>

CC BY-SA 4.0
2020-02-07T15:20:16.277Z
2020-02-07T15:20:16.277Z
pinhead
<p>When running <code>bcoin</code>, 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. </p>

CC BY-SA 4.0
2020-02-06T19:45:01.130Z
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
CC BY-SA 4.0
2020-02-06T19:58:11.523Z
Mining 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
CC BY-SA 4.0
2020-02-07T15:14:12.260Z
@pinhead: I think that's an answer. :)
Murch
<miner-configuration><bcoin>
How do I disable mining in `bcoin`?
x70766c
# How do I disable mining in `bcoin`?

(Asked by: username_0 on 2020-02-06)

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.

**Tags:** miner-configuration, bcoin

> **Comments:**
> **username_1**: Why do you assume `bcoin` is mining by default? I'd be extremely surprised if it was capable of mining by itself at all.  
> **username_2**: Mining 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.  
> **username_3**: @username_2: I think that's an answer. :)  

---

## 1 answers

### Answer by username_2 on 2020-02-07. Score: 1 | Accepted answer

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](https://github.com/bcoin-org/bcoin/issues/160) mined on mainnet with a bcoin full node.


---

