a2bfd7473a
Joinmarket is not compatible with bitcoind >= 30. Set bitcoind version to 29 to use jm.
41 lines
1.4 KiB
Nix
41 lines
1.4 KiB
Nix
### BITCOIND
|
|
{config, ...}: {
|
|
# Bitcoind is enabled by default via secure-node.nix.
|
|
services.bitcoind = {
|
|
# Joinmarket is not compatible with bitcoind >= 30.
|
|
# (https://github.com/JoinMarket-Org/joinmarket-clientserver/pull/1775)
|
|
# To fix this, enable the following config:
|
|
# package = config.nix-bitcoin.pkgs.bitcoind_29;
|
|
enable = true;
|
|
# Set this option to enable pruning with a specified MiB value.
|
|
# clightning is compatible with pruning. See
|
|
# https://github.com/ElementsProject/lightning/#pruning for more information.
|
|
# LND and electrs are not compatible with pruning.
|
|
prune = 0;
|
|
txindex = true;
|
|
zmqpubrawtx = "tcp://127.0.0.1:28333";
|
|
zmqpubrawblock = "tcp://127.0.0.1:28332";
|
|
listen = true;
|
|
address = "0.0.0.0";
|
|
rpc = {
|
|
address = "0.0.0.0";
|
|
allowip = [
|
|
"10.10.0.0/24" # Allow on a subnet
|
|
"10.50.0.3" # Allow on a specific address
|
|
"0.0.0.0/0" # Allow on all addresses
|
|
];
|
|
};
|
|
# You can add options that are not defined in modules/bitcoind.nix as follows
|
|
# extraConfig = ''
|
|
# maxorphantx=110
|
|
# '';
|
|
};
|
|
networking.firewall.allowedTCPPorts = [
|
|
config.services.bitcoind.port
|
|
config.services.bitcoind.rpc.port
|
|
];
|
|
# Set this to accounce the onion service address to peers.
|
|
# The onion service allows accepting incoming connections via Tor.
|
|
# nix-bitcoin.onionServices.bitcoind.public = true;
|
|
}
|