Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/cli/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func RootCommand() (*cobra.Command, *httpcfg.HttpCfg) {
rootCmd.PersistentFlags().BoolVar(&cfg.GethCompatibility, "rpc.gethcompat", false, "Enables Geth-compatible storage iteration order for debug_storageRangeAt (sorted by keccak256 hash). Disabled by default for performance.")
rootCmd.PersistentFlags().StringVar(&cfg.TxPoolApiAddr, "txpool.api.addr", "", "txpool api network address, for example: 127.0.0.1:9090 (default: use value of --private.api.addr)")

rootCmd.PersistentFlags().StringVar(&stateCacheStr, "state.cache", "0MB", "Amount of data to store in the version-keyed StateCache (an equally-sized code cache is budgeted on top). Set 0 to disable entry retention while preserving snapshot-consistent reads")
rootCmd.PersistentFlags().StringVar(&stateCacheStr, "state.cache", "128MB", "Amount of data to store in the version-keyed StateCache (an equally-sized code cache is budgeted on top). Set 0 to disable entry retention while preserving snapshot-consistent reads")
rootCmd.PersistentFlags().BoolVar(&cfg.GRPCServerEnabled, "grpc", false, "Enable GRPC server")
rootCmd.PersistentFlags().StringVar(&cfg.GRPCListenAddress, "grpc.addr", nodecfg.DefaultGRPCHost, "GRPC server listening interface")
rootCmd.PersistentFlags().IntVar(&cfg.GRPCPort, "grpc.port", nodecfg.DefaultGRPCPort, "GRPC server listening port")
Expand Down
4 changes: 2 additions & 2 deletions docs/site/docs/fundamentals/configuring-erigon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ Flags for configuring Fork Choice Update behavior.
* Default: `1s`
* `--fcu.background.prune`: Enables background pruning after FCU.
* Default: `true`
* `--fcu.background.commit`: Enables background flush and commit after FCU.
* Default: `false`
* `--fcu.background.commit`: Returns the FCU response before MDBX flush+commit lands (commit runs in background; remote `rpcdaemon` `latest` stays consistent but can lag for the commit duration).
* Default: `true`

### Execution

Expand Down
2 changes: 1 addition & 1 deletion docs/site/docs/fundamentals/modules/rpc-daemon.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Flags:
--rpc.txfeecap float Sets a cap on transaction fee (in ether) that can be sent via the RPC APIs (0 = no cap) (default 1)
--socket.enabled Enable IPC server
--socket.url string IPC server listening url. prefix supported are tcp, unix (default "unix:///var/run/erigon.sock")
--state.cache string Amount of data to store in the version-keyed StateCache (an equally-sized code cache is budgeted on top). Set 0 to disable entry retention while preserving snapshot-consistent reads (default "0MB")
--state.cache string Amount of data to store in the version-keyed StateCache (an equally-sized code cache is budgeted on top). Set 0 to disable entry retention while preserving snapshot-consistent reads (default "128MB")
--tls.cacert string CA certificate for client side TLS handshake for GRPC
--tls.cert string certificate for client side TLS handshake for GRPC
--tls.key string key file for client side TLS handshake for GRPC
Expand Down
6 changes: 3 additions & 3 deletions docs/site/static/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2319,8 +2319,8 @@ Flags for configuring Fork Choice Update behavior.
* Default: `1s`
* `--fcu.background.prune`: Enables background pruning after FCU.
* Default: `true`
* `--fcu.background.commit`: Enables background flush and commit after FCU.
* Default: `false`
* `--fcu.background.commit`: Returns the FCU response before MDBX flush+commit lands (commit runs in background; remote `rpcdaemon` `latest` stays consistent but can lag for the commit duration).
* Default: `true`

### Execution

Expand Down Expand Up @@ -4121,7 +4121,7 @@ Flags:
--rpc.txfeecap float Sets a cap on transaction fee (in ether) that can be sent via the RPC APIs (0 = no cap) (default 1)
--socket.enabled Enable IPC server
--socket.url string IPC server listening url. prefix supported are tcp, unix (default "unix:///var/run/erigon.sock")
--state.cache string Amount of data to store in the version-keyed StateCache (an equally-sized code cache is budgeted on top). Set 0 to disable entry retention while preserving snapshot-consistent reads (default "0MB")
--state.cache string Amount of data to store in the version-keyed StateCache (an equally-sized code cache is budgeted on top). Set 0 to disable entry retention while preserving snapshot-consistent reads (default "128MB")
--tls.cacert string CA certificate for client side TLS handshake for GRPC
--tls.cert string certificate for client side TLS handshake for GRPC
--tls.key string key file for client side TLS handshake for GRPC
Expand Down
6 changes: 3 additions & 3 deletions llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2319,8 +2319,8 @@ Flags for configuring Fork Choice Update behavior.
* Default: `1s`
* `--fcu.background.prune`: Enables background pruning after FCU.
* Default: `true`
* `--fcu.background.commit`: Enables background flush and commit after FCU.
* Default: `false`
* `--fcu.background.commit`: Returns the FCU response before MDBX flush+commit lands (commit runs in background; remote `rpcdaemon` `latest` stays consistent but can lag for the commit duration).
* Default: `true`

### Execution

Expand Down Expand Up @@ -4121,7 +4121,7 @@ Flags:
--rpc.txfeecap float Sets a cap on transaction fee (in ether) that can be sent via the RPC APIs (0 = no cap) (default 1)
--socket.enabled Enable IPC server
--socket.url string IPC server listening url. prefix supported are tcp, unix (default "unix:///var/run/erigon.sock")
--state.cache string Amount of data to store in the version-keyed StateCache (an equally-sized code cache is budgeted on top). Set 0 to disable entry retention while preserving snapshot-consistent reads (default "0MB")
--state.cache string Amount of data to store in the version-keyed StateCache (an equally-sized code cache is budgeted on top). Set 0 to disable entry retention while preserving snapshot-consistent reads (default "128MB")
--tls.cacert string CA certificate for client side TLS handshake for GRPC
--tls.cert string certificate for client side TLS handshake for GRPC
--tls.key string key file for client side TLS handshake for GRPC
Expand Down
10 changes: 7 additions & 3 deletions node/ethconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,13 @@ var Defaults = Config{
ProduceE2: true,
ProduceE3: true,
},
FcuTimeout: 1 * time.Second,
FcuBackgroundPrune: true,
FcuBackgroundCommit: false, // to enable, we need to 1) have rawdb API go via execctx and 2) revive Coherent cache for rpcdaemon
FcuTimeout: 1 * time.Second,
FcuBackgroundPrune: true,
// FcuBackgroundCommit returns the FCU response before the MDBX commit
// lands; the commit runs in a background goroutine and successive FCUs are
// serialized by the ExecModule semaphore. "Latest" state reads can lag the
// announced head by one block for the commit's duration.
FcuBackgroundCommit: true,
ExperimentalBAL: false,
WarmupKzgCtxOnInit: true,
}
Expand Down
Loading