use RpcSettings and RpcSettingsOpt

This commit is contained in:
darkfi
2025-02-18 22:35:41 +01:00
committed by skoupidi
parent a220243e56
commit 2bbe39e0ee
76 changed files with 585 additions and 255 deletions

View File

@@ -11,9 +11,6 @@ network = "localnet"
# Localnet blockchain network configuration
[network_config."localnet"]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48340"
# Path to the blockchain database directory
database = "darkfid1"
@@ -52,6 +49,14 @@ skip_fees = false
# Optional bootstrap timestamp
#bootstrap = 1712581283
## Localnet JSON-RPC settings
[network_config."localnet".rpc]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48340"
# Disabled RPC methods
rpc_disabled_methods = ["p2p.get_info"]
## Localnet P2P network settings
[network_config."localnet".net]
# P2P accept addresses the instance listens on for inbound connections