maflcko / bitcoin-core

MIT License
26 stars 12 forks source link

Add -initmempool setting #55

Closed maflcko closed 1 year ago

maflcko commented 3 years ago

The mempool is required for the Bitcoin network to function properly. Miners use it to select transaction for the next block and non-miner network nodes use it to accept/reject txs for relay.

However, if the node is not a miner nor wishes to participate in tx-relay, the mempool can be omitted. This hardens the node operation because less code runs in production and the node may be less susceptible to DoS attacks. For example, a user that is only interested in confirmed transactions, may wish to disable the mempool.

Moreover, the new setting encourages modularization within the software project.

A new boolean -initmempool setting should be added (default: True) to allow the mempool to be never initialized.

Useful skills:

Want to work on this issue?

For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.

maflcko commented 3 years ago

To break this down into smaller tasks: