fix(bitcoin): expand btcpayserver RPC whitelist for NBXplorer
- Ensure services.bitcoind.rpc.users.btcpayserver.rpcwhitelist includes public.rpcwhitelist and NBXplorer capability-scan/wallet RPC methods (validateaddress, testmempoolaccept, signrawtransactionwithkey, signrawtransactionwithwallet, getblockfrompeer, generatetoaddress, getindexinfo, createwallet, loadwallet, importdescriptors, etc.).
This commit is contained in:
1 parent
7b5f25d599
commit
f1f0bf0d11
1 file changed
+23
-2
@@ -55,13 +55,34 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# ── 2. Second_Drive data paths (OS-specific) ──────────────────
|
# ── 2. Second_Drive data paths (OS-specific) ──────────────────
|
||||||
services.bitcoind = lib.mkIf cfg.services.bitcoin {
|
services.bitcoind = lib.mkIf cfg.services.bitcoin ({
|
||||||
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Bitcoin_Node";
|
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Bitcoin_Node";
|
||||||
# The OS always enables the bitcoind wallet — the Hub and BTCPay need it.
|
# The OS always enables the bitcoind wallet — the Hub and BTCPay need it.
|
||||||
disablewallet = lib.mkForce false;
|
disablewallet = lib.mkForce false;
|
||||||
# electrs 0.12.0 (bindex) requires bitcoind's REST interface (rest=1).
|
# electrs 0.12.0 (bindex) requires bitcoind's REST interface (rest=1).
|
||||||
extraConfig = lib.optionalString (!(options.services.bitcoind ? rest)) "rest=1";
|
extraConfig = lib.optionalString (!(options.services.bitcoind ? rest)) "rest=1";
|
||||||
};
|
} // lib.optionalAttrs cfg.web.btcpayserver {
|
||||||
|
rpc.users.btcpayserver.rpcwhitelist = lib.mkForce (lib.unique (config.services.bitcoind.rpc.users.public.rpcwhitelist ++ [
|
||||||
|
"setban"
|
||||||
|
"generatetoaddress"
|
||||||
|
"getrpcinfo"
|
||||||
|
"gettransaction"
|
||||||
|
"getwalletinfo"
|
||||||
|
"getnewaddress"
|
||||||
|
"listunspent"
|
||||||
|
"listtransactions"
|
||||||
|
"listreceivedbyaddress"
|
||||||
|
"importmulti"
|
||||||
|
"importdescriptors"
|
||||||
|
"importaddress"
|
||||||
|
"importprivkey"
|
||||||
|
"importpubkey"
|
||||||
|
"rescanblockchain"
|
||||||
|
"createwallet"
|
||||||
|
"loadwallet"
|
||||||
|
"signrawtransactionwithwallet"
|
||||||
|
]));
|
||||||
|
});
|
||||||
|
|
||||||
services.electrs = lib.mkIf cfg.services.bitcoin {
|
services.electrs = lib.mkIf cfg.services.bitcoin {
|
||||||
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Electrs_Data";
|
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Electrs_Data";
|
||||||
|
|||||||
Reference in new issue
Block a user