Skip to content

Commit cfef444

Browse files
committed
add rpc.enabledeprecatedpersonal flag
1 parent a2da3bb commit cfef444

File tree

15 files changed

+29
-5
lines changed

15 files changed

+29
-5
lines changed

builder/files/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ syncmode = "full"
8181
# evmtimeout = "5s"
8282
# txfeecap = 5.0
8383
# allow-unprotected-txs = false
84+
# enabledeprecatedpersonal = false
8485
# [jsonrpc.http]
8586
# enabled = false
8687
# port = 8545

docs/cli/bootnode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
- ```save-key```: path to save the ecdsa private key
1818

19-
- ```dry-run```: validates parameters and prints bootnode configurations, but does not start bootnode (default: false)
19+
- ```dry-run```: validates parameters and prints bootnode configurations, but does not start bootnode (default: false)

docs/cli/debug_pprof.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ The ```debug pprof <enode>``` command will create an archive containing bor ppro
1010

1111
- ```output```: Output directory
1212

13-
- ```skiptrace```: Skip running the trace (default: false)
13+
- ```skiptrace```: Skip running the trace (default: false)

docs/cli/example_config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ devfakeauthor = false # Run miner without validator set authorization
8282
evmtimeout = "5s" # Sets a timeout used for eth_call (0=infinite)
8383
txfeecap = 5.0 # Sets a cap on transaction fee (in ether) that can be sent via the RPC APIs (0 = no cap)
8484
allow-unprotected-txs = false # Allow for unprotected (non EIP155 signed) transactions to be submitted via RPC (default: false)
85+
enabledeprecatedpersonal = false # Enables the (deprecated) personal namespace
8586
[jsonrpc.http]
8687
enabled = false # Enable the HTTP-RPC server
8788
port = 8545 # http.port

docs/cli/server.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The ```bor server``` command runs the Bor client.
6060

6161
- ```gpo.maxblockhistory```: Maximum block history of gasprice oracle (default: 1024)
6262

63-
- ```gpo.maxprice```: Maximum gas price will be recommended by gpo (default: 5000000000000)
63+
- ```gpo.maxprice```: Maximum gas price will be recommended by gpo (default: 500000000000)
6464

6565
- ```gpo.ignoreprice```: Gas price below which gpo will ignore transactions (default: 2)
6666

@@ -134,6 +134,8 @@ The ```bor server``` command runs the Bor client.
134134

135135
- ```rpc.allow-unprotected-txs```: Allow for unprotected (non EIP155 signed) transactions to be submitted via RPC (default: false)
136136

137+
- ```rpc.enabledeprecatedpersonal```: Enables the (deprecated) personal namespace (default: false)
138+
137139
- ```ipcdisable```: Disable the IPC-RPC server (default: false)
138140

139141
- ```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.
258260

259261
- ```metrics.prometheus-addr```: Address for Prometheus Server (default: 127.0.0.1:7071)
260262

261-
- ```metrics.opencollector-endpoint```: OpenCollector Endpoint (host:port) (default: 127.0.0.1:4317)
263+
- ```metrics.opencollector-endpoint```: OpenCollector Endpoint (host:port)
262264

263265
- ```metrics.influxdbv2```: Enable metrics export/push to an external InfluxDB v2 database (default: false)
264266

@@ -290,4 +292,4 @@ The ```bor server``` command runs the Bor client.
290292

291293
- ```txpool.globalqueue```: Maximum number of non-executable transaction slots for all accounts (default: 32768)
292294

293-
- ```txpool.lifetime```: Maximum amount of time non-executable transaction are queued (default: 3h0m0s)
295+
- ```txpool.lifetime```: Maximum amount of time non-executable transaction are queued (default: 3h0m0s)

internal/cli/server/config.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ type JsonRPCConfig struct {
350350
HttpTimeout *HttpTimeouts `hcl:"timeouts,block" toml:"timeouts,block"`
351351

352352
AllowUnprotectedTxs bool `hcl:"allow-unprotected-txs,optional" toml:"allow-unprotected-txs,optional"`
353+
354+
// EnablePersonal enables the deprecated personal namespace.
355+
EnablePersonal bool `hcl:"enabledeprecatedpersonal,optional" toml:"enabledeprecatedpersonal,optional"`
353356
}
354357

355358
type AUTHConfig struct {
@@ -662,6 +665,7 @@ func DefaultConfig() *Config {
662665
TxFeeCap: ethconfig.Defaults.RPCTxFeeCap,
663666
RPCEVMTimeout: ethconfig.Defaults.RPCEVMTimeout,
664667
AllowUnprotectedTxs: false,
668+
EnablePersonal: false,
665669
Http: &APIConfig{
666670
Enabled: false,
667671
Port: 8545,
@@ -1280,6 +1284,7 @@ func (c *Config) buildNode() (*node.Config, error) {
12801284
Version: params.VersionWithCommit(gitCommit, gitDate),
12811285
IPCPath: ipcPath,
12821286
AllowUnprotectedTxs: c.JsonRPC.AllowUnprotectedTxs,
1287+
EnablePersonal: c.JsonRPC.EnablePersonal,
12831288
P2P: p2p.Config{
12841289
MaxPeers: int(c.P2P.MaxPeers),
12851290
MaxPendingPeers: int(c.P2P.MaxPendPeers),

internal/cli/server/flags.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,13 @@ func (c *Command) Flags() *flagset.Flagset {
471471
Default: c.cliConfig.JsonRPC.AllowUnprotectedTxs,
472472
Group: "JsonRPC",
473473
})
474+
f.BoolFlag(&flagset.BoolFlag{
475+
Name: "rpc.enabledeprecatedpersonal",
476+
Usage: "Enables the (deprecated) personal namespace",
477+
Value: &c.cliConfig.JsonRPC.EnablePersonal,
478+
Default: c.cliConfig.JsonRPC.EnablePersonal,
479+
Group: "JsonRPC",
480+
})
474481
f.BoolFlag(&flagset.BoolFlag{
475482
Name: "ipcdisable",
476483
Usage: "Disable the IPC-RPC server",

packaging/templates/mainnet-v1/archive/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ gcmode = "archive"
7575
# evmtimeout = "5s"
7676
# txfeecap = 5.0
7777
# allow-unprotected-txs = false
78+
# enabledeprecatedpersonal = false
7879
[jsonrpc.http]
7980
enabled = true
8081
port = 8545

packaging/templates/mainnet-v1/sentry/sentry/bor/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ syncmode = "full"
7575
# evmtimeout = "5s"
7676
# txfeecap = 5.0
7777
# allow-unprotected-txs = false
78+
# enabledeprecatedpersonal = false
7879
[jsonrpc.http]
7980
enabled = true
8081
port = 8545

packaging/templates/mainnet-v1/sentry/validator/bor/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ syncmode = "full"
7777
# evmtimeout = "5s"
7878
# txfeecap = 5.0
7979
# allow-unprotected-txs = false
80+
# enabledeprecatedpersonal = false
8081
[jsonrpc.http]
8182
enabled = true
8283
port = 8545

0 commit comments

Comments
 (0)