mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
use RpcSettings and RpcSettingsOpt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user