Archived
1
0
Fork 0

feat: Minimum block rewards to send notifications

Flexpool is now finding more blocks than ever. There are tons of notifications
all day long. This commit adds a new pool setting `min-block-reward` to send
notifications for blocks reaching this minimum threshold, so we can focus on
big blocks.

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2022-02-25 15:05:52 +01:00
commit b519770922
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7
6 changed files with 13 additions and 4 deletions

View file

@ -19,8 +19,9 @@ type Config struct {
// PoolConfig to store Pool configuration
type PoolConfig struct {
Coin string `yaml:"coin"`
EnableBlocks bool `yaml:"enable-blocks"`
Coin string `yaml:"coin"`
EnableBlocks bool `yaml:"enable-blocks"`
MinBlockReward float64 `yaml:"min-block-reward"`
}
// MinerConfig to store Miner configuration