Skip to content

Commit

Permalink
fix: exclude 0 rewarded operators from a tree
Browse files Browse the repository at this point in the history
  • Loading branch information
madlabman committed May 10, 2024
1 parent ad84e0e commit 256be6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/csm/csm.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def build_report(self, blockstamp: ReferenceBlockStamp) -> tuple:
# is not presented in the aggregates (e.g. exited, pending for activation etc).
continue

distribution[no_id] = portion
if portion:
distribution[no_id] = portion

# Calculate share of each CSM node operator.
to_distribute = self.w3.csm.fee_distributor.pending_to_distribute(blockstamp.block_hash)
Expand Down

0 comments on commit 256be6a

Please sign in to comment.