diff --git a/docs/how-to/configure-slashing-protection.md b/docs/how-to/configure-slashing-protection.md index 760ac4a..472d509 100644 --- a/docs/how-to/configure-slashing-protection.md +++ b/docs/how-to/configure-slashing-protection.md @@ -138,16 +138,16 @@ Enable pruning by setting [`--slashing-protection-pruning-enabled`](../reference/cli/subcommands.md#slashing-protection-pruning-enabled) to `true`. -By default, Web3Signer prunes the database on startup, and then after each pruning interval. -You can disable pruning at startup and start pruning after the pruning interval by setting +Web3Signer can prune the database on startup, and then after each pruning interval. +By default, this feature is disabled. You can enable pruning at startup and start pruning after the pruning interval by setting [`--slashing-protection-pruning-at-boot-enabled`](../reference/cli/subcommands.md#slashing-protection-pruning-at-boot-enabled) -to `false`. +to `true`. You can include additional optional pruning configuration options. For example, run: ```bash -web3signer eth2 --slashing-protection-db-url="jdbc:postgresql://localhost/web3signer" --slashing-protection-db-username=postgres --slashing-protection-db-password=password --slashing-protection-pruning-enabled=true --slashing-protection-pruning-at-boot-enabled=false --slashing-protection-pruning-epochs-to-keep=5000 --slashing-protection-pruning-interval=18 +web3signer eth2 --slashing-protection-db-url="jdbc:postgresql://localhost/web3signer" --slashing-protection-db-username=postgres --slashing-protection-db-password=password --slashing-protection-pruning-enabled=true --slashing-protection-pruning-at-boot-enabled=true --slashing-protection-pruning-epochs-to-keep=5000 --slashing-protection-pruning-interval=18 ``` :::caution Warning diff --git a/docs/reference/cli/subcommands.md b/docs/reference/cli/subcommands.md index e2e7c96..222646b 100644 --- a/docs/reference/cli/subcommands.md +++ b/docs/reference/cli/subcommands.md @@ -1693,28 +1693,28 @@ The default is `true`. # Example ```bash ---slashing-protection-pruning-at-boot-enabled=false +--slashing-protection-pruning-at-boot-enabled=true ``` # Environment variable ```bash -WEB3SIGNER_ETH2_SLASHING_PROTECTION_PRUNING_AT_BOOT_ENABLED=false +WEB3SIGNER_ETH2_SLASHING_PROTECTION_PRUNING_AT_BOOT_ENABLED=true ``` # Configuration file ```yaml -eth2.slashing-protection-pruning-at-boot-enabled: false +eth2.slashing-protection-pruning-at-boot-enabled: true ``` -When set to `false`, [slashing protection database +When set to `true`, [slashing protection database pruning](../../how-to/configure-slashing-protection.md#prune-the-slashing-protection-database) is -disabled at boot and only takes place at the scheduled [pruning intervals](#slashing-protection-pruning-interval). +enabled at startup and at the defined [pruning intervals](#slashing-protection-pruning-interval). -The default is `true`. +The default is `false`. #### `slashing-protection-pruning-db-pool-configuration-file`