mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
add rpc.enabledeprecatedpersonal flag
This commit is contained in:
parent
a2da3bb438
commit
cfef444909
15 changed files with 29 additions and 5 deletions
|
|
@ -81,6 +81,7 @@ syncmode = "full"
|
|||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
# [jsonrpc.http]
|
||||
# enabled = false
|
||||
# port = 8545
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ devfakeauthor = false # Run miner without validator set authorization
|
|||
evmtimeout = "5s" # Sets a timeout used for eth_call (0=infinite)
|
||||
txfeecap = 5.0 # Sets a cap on transaction fee (in ether) that can be sent via the RPC APIs (0 = no cap)
|
||||
allow-unprotected-txs = false # Allow for unprotected (non EIP155 signed) transactions to be submitted via RPC (default: false)
|
||||
enabledeprecatedpersonal = false # Enables the (deprecated) personal namespace
|
||||
[jsonrpc.http]
|
||||
enabled = false # Enable the HTTP-RPC server
|
||||
port = 8545 # http.port
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ The ```bor server``` command runs the Bor client.
|
|||
|
||||
- ```gpo.maxblockhistory```: Maximum block history of gasprice oracle (default: 1024)
|
||||
|
||||
- ```gpo.maxprice```: Maximum gas price will be recommended by gpo (default: 5000000000000)
|
||||
- ```gpo.maxprice```: Maximum gas price will be recommended by gpo (default: 500000000000)
|
||||
|
||||
- ```gpo.ignoreprice```: Gas price below which gpo will ignore transactions (default: 2)
|
||||
|
||||
|
|
@ -134,6 +134,8 @@ The ```bor server``` command runs the Bor client.
|
|||
|
||||
- ```rpc.allow-unprotected-txs```: Allow for unprotected (non EIP155 signed) transactions to be submitted via RPC (default: false)
|
||||
|
||||
- ```rpc.enabledeprecatedpersonal```: Enables the (deprecated) personal namespace (default: false)
|
||||
|
||||
- ```ipcdisable```: Disable the IPC-RPC server (default: false)
|
||||
|
||||
- ```ipcpath```: Filename for IPC socket/pipe within the datadir (explicit paths escape it)
|
||||
|
|
@ -258,7 +260,7 @@ The ```bor server``` command runs the Bor client.
|
|||
|
||||
- ```metrics.prometheus-addr```: Address for Prometheus Server (default: 127.0.0.1:7071)
|
||||
|
||||
- ```metrics.opencollector-endpoint```: OpenCollector Endpoint (host:port) (default: 127.0.0.1:4317)
|
||||
- ```metrics.opencollector-endpoint```: OpenCollector Endpoint (host:port)
|
||||
|
||||
- ```metrics.influxdbv2```: Enable metrics export/push to an external InfluxDB v2 database (default: false)
|
||||
|
||||
|
|
|
|||
|
|
@ -350,6 +350,9 @@ type JsonRPCConfig struct {
|
|||
HttpTimeout *HttpTimeouts `hcl:"timeouts,block" toml:"timeouts,block"`
|
||||
|
||||
AllowUnprotectedTxs bool `hcl:"allow-unprotected-txs,optional" toml:"allow-unprotected-txs,optional"`
|
||||
|
||||
// EnablePersonal enables the deprecated personal namespace.
|
||||
EnablePersonal bool `hcl:"enabledeprecatedpersonal,optional" toml:"enabledeprecatedpersonal,optional"`
|
||||
}
|
||||
|
||||
type AUTHConfig struct {
|
||||
|
|
@ -662,6 +665,7 @@ func DefaultConfig() *Config {
|
|||
TxFeeCap: ethconfig.Defaults.RPCTxFeeCap,
|
||||
RPCEVMTimeout: ethconfig.Defaults.RPCEVMTimeout,
|
||||
AllowUnprotectedTxs: false,
|
||||
EnablePersonal: false,
|
||||
Http: &APIConfig{
|
||||
Enabled: false,
|
||||
Port: 8545,
|
||||
|
|
@ -1280,6 +1284,7 @@ func (c *Config) buildNode() (*node.Config, error) {
|
|||
Version: params.VersionWithCommit(gitCommit, gitDate),
|
||||
IPCPath: ipcPath,
|
||||
AllowUnprotectedTxs: c.JsonRPC.AllowUnprotectedTxs,
|
||||
EnablePersonal: c.JsonRPC.EnablePersonal,
|
||||
P2P: p2p.Config{
|
||||
MaxPeers: int(c.P2P.MaxPeers),
|
||||
MaxPendingPeers: int(c.P2P.MaxPendPeers),
|
||||
|
|
|
|||
|
|
@ -471,6 +471,13 @@ func (c *Command) Flags() *flagset.Flagset {
|
|||
Default: c.cliConfig.JsonRPC.AllowUnprotectedTxs,
|
||||
Group: "JsonRPC",
|
||||
})
|
||||
f.BoolFlag(&flagset.BoolFlag{
|
||||
Name: "rpc.enabledeprecatedpersonal",
|
||||
Usage: "Enables the (deprecated) personal namespace",
|
||||
Value: &c.cliConfig.JsonRPC.EnablePersonal,
|
||||
Default: c.cliConfig.JsonRPC.EnablePersonal,
|
||||
Group: "JsonRPC",
|
||||
})
|
||||
f.BoolFlag(&flagset.BoolFlag{
|
||||
Name: "ipcdisable",
|
||||
Usage: "Disable the IPC-RPC server",
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ gcmode = "archive"
|
|||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ syncmode = "full"
|
|||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ syncmode = "full"
|
|||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ syncmode = "full"
|
|||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ gcmode = "archive"
|
|||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ syncmode = "full"
|
|||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ syncmode = "full"
|
|||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ syncmode = "full"
|
|||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
|
|
|
|||
Loading…
Reference in a new issue