Skip to content

Commit

Permalink
Withdrawals: Improve logging (#139)
Browse files Browse the repository at this point in the history
* Withdrawals: Improve logging

Signed-off-by: cyc60 <[email protected]>

* Version bump

Signed-off-by: cyc60 <[email protected]>

---------

Signed-off-by: cyc60 <[email protected]>
  • Loading branch information
cyc60 authored Apr 4, 2023
1 parent 2144606 commit 9817833
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 30 deletions.
3 changes: 3 additions & 0 deletions oracle/oracle/rewards/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ async def process(
total_rewards += balance_rewards
activated_validators = len(validator_indexes)

withdrawals_rewards = Wei(0)
if (
self.withdrawals_genesis_epoch
and update_epoch >= self.withdrawals_genesis_epoch
Expand All @@ -131,6 +132,8 @@ async def process(
logger.info(
f"Retrieved pool validator rewards:"
f" total={pretty_total_rewards},"
f" balance_rewards={self.format_ether(balance_rewards)},"
f" withdrawals_rewards={self.format_ether(withdrawals_rewards)},"
f" fees={self.format_ether(voting_params['total_fees'])}"
)
if not total_rewards:
Expand Down
58 changes: 29 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "oracle"
version = "2.9.0"
version = "2.9.1"
description = "StakeWise Oracles are responsible for submitting off-chain data."
authors = ["Dmitri Tsumak <[email protected]>"]
license = "AGPL-3.0-only"
Expand Down

0 comments on commit 9817833

Please sign in to comment.