- Add ETC to the list of supported coins. A new `coin` setting can be
configured to avoid conflict with `eth`. Mind the lowercase. By default,
flexassitant will try to deduce the coin from the miner's address (with eth by
default, not etc). (#5)
- Add `test` (true/false) to `notifications` section to test notifications with
random values fetched from the Flexpool API
- Fix typo in the configuration example (#6)
BREAKING CHANGE: `notification-templates` configuration settings have been
renamed to `notifications`, with sections to configure balance, payment, block
and offline workers notifications, with `template` and `test` settings.
Signed-off-by: Julien Riou <julien@riou.xyz>
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>
Block rewards of Chia blockchain were fixed to 1.75 XCH. Now, they
include a variable transaction fee. This commit sets the precision to 6
digits after the floating point, like Ethereum block rewards.
Signed-off-by: Julien Riou <julien@riou.xyz>
Large numbers can be returned by the Flexpool API reaching the `int64`
limit. Blocks reward were seen as 0 ETH. Using `float64` instead. Also
converting signed int64 to unsigned int64 for non-timestamp numbers.
BREAKING CHANGE: please follow the upgrades instructions from 1.2 to
1.3 to convert such types in the database.
Signed-off-by: Julien Riou <julien@riou.xyz>
- Return bytes for each request to the Flexpool API
- Delegate JSON marshalling the higher functions
- Use int64 when possible
BREAKING CHANGE: database structure has to be updated to use integer
instead of real. Please follow instructions to upgrade from 1.0 to 1.1.
Signed-off-by: Julien Riou <julien@riou.xyz>