-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: config chapter #3173
docs: config chapter #3173
Conversation
cc @mattsse
|
Codecov Report
@@ Coverage Diff @@
## main #3173 +/- ##
==========================================
+ Coverage 69.74% 69.83% +0.08%
==========================================
Files 527 530 +3
Lines 70208 71387 +1179
==========================================
+ Hits 48970 49853 +883
- Misses 21238 21534 +296
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good stuff
### `total_difficulty` | ||
|
||
The total difficulty stage calculates the total difficulty reached for each header in the chain. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worth mentioning it also validates the TD according to consensus rules?
book/run/config.md
Outdated
Reth places a configuration file named `reth.toml` in the data directory specified when starting the node. It is written in the [TOML] format. | ||
|
||
The default data directory is platform dependent and can be found by running `reth node --help`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe put same lines here, so you wouldn't need to run the CLI or go elsewhere in the book to find the config?
Lines 9 to 16 in 017c9ce
--datadir <DATA_DIR> | |
The path to the data dir for all reth files and subdirectories. | |
Defaults to the OS-specific data directory: | |
- Linux: `$XDG_DATA_HOME/reth/` or `$HOME/.local/share/reth/` | |
- Windows: `{FOLDERID_RoamingAppData}/reth/` | |
- macOS: `$HOME/Library/Application Support/reth/` |
all peers start out with 0 reputation and earn reputation over time (simple reward for how long they're connected) but lose reputation on certain errors that are categorized in units via weights. The weights convert error variants into the reputation value via: reth/crates/net/network/src/peers/reputation.rs Lines 5 to 9 in 1049202
if a peer drops below the
This is a chosen interval at which we try to fill outgoing connections slots by initiating outgoing connections to available peers
This depends on the error kind: ptal at this impl: reth/crates/net/network/src/error.rs Line 171 in 1049202
we convert the error to
session command buffer is the channel size from the manager (producer) TO the active session (consumer) |
Co-authored-by: Alexey Shekhirin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Adds a reference on how to configure reth using
reth.toml
, as well as describing some of the tradeoffs of increasing/decreasing values.