Documentation
¶
Index ¶
- func CalculateKeepRecent(maxBundleSize int, uploadInterval int) int
- func CalculateMaxDifference(maxBundleSize int, uploadInterval int) int
- func CheckBinaryPath(path string) error
- func CheckFilePath(path string) error
- func GetPoolSettings(poolId int, chainId string, poolEndpoints string) ([2]int, error)
- func SetPruningSettings(homePath string, stateRequests bool, keepRecent int, interval int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateKeepRecent ¶
CalculateKeepRecent calculates the value for keepRecent, which is relevant for the pruning settings. It ensures that data that doesn't need to be stored anymore is pruned only after it has been validated. The calculation is based on the KYVE pool settings, and it ensures that blocks are stored for 3 days in advance.
func CalculateMaxDifference ¶
CalculateMaxDifference calculates a crucial threshold for the supervysor architecture. When the node is ahead of the pool by this value, the syncing process will halt in Ghost Mode. Once the node is again halfway within this value, the normal syncing process continues until reaching the threshold again.
func CheckBinaryPath ¶ added in v0.2.0
func CheckFilePath ¶ added in v0.2.0
func GetPoolSettings ¶
GetPoolSettings retrieves KYVE pool settings by using a list of endpoints (& optionally fallback endpoints) based on the provided chain and pool ID.
func SetPruningSettings ¶ added in v0.2.0
SetPruningSettings updates the pruning settings in the app.toml file of the given home directory. It reads the current file, modifies the relevant lines and writes the updated lines back to the file.
Types ¶
This section is empty.