Skip to content

Commit

Permalink
Clarify some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lassemoldrup committed Oct 24, 2023
1 parent fe2d699 commit 2a835b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kpi-tracker/resources/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CREATE TABLE IF NOT EXISTS paydays (
pool_reward INT8 NOT NULL,
finalizer_reward INT8 NOT NULL,
foundation_reward INT8 NOT NULL,
-- Number of staking pools active in the preceding payday period.
-- Number of staking pools active in the payday period of the block, i.e. going forward until the next payday block.
num_pools INT8 NOT NULL,
-- Note: This is a snapshot of the number of open pools at the time of the payday block, i.e. NOT directly related to the number of staking pools for the preceding payday period (`num_pools`).
num_open_pools INT8 NOT NULL,
Expand Down
4 changes: 2 additions & 2 deletions kpi-tracker/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ struct PaydayBlockData {
finalizer_reward: u64,
/// Reward in microCCD for the foundation.
foundation_reward: u64,
/// The number of pools in this reward peirod.
/// The number of pools in this reward period.
pool_count: usize,
/// The number of pools open for new delegators at the time of the payday
/// block.
Expand Down Expand Up @@ -832,7 +832,7 @@ async fn process_payday_block(
match event {
SpecialTransactionOutcome::PaydayFoundationReward {
development_charge, ..
} => foundation_reward += development_charge.micro_ccd(),
} => foundation_reward += dbg!(development_charge.micro_ccd()),
SpecialTransactionOutcome::PaydayPoolReward {
baker_reward,
finalization_reward,
Expand Down

0 comments on commit 2a835b8

Please sign in to comment.