Skip to content

Commit

Permalink
cardano-node: rename 'is_forge' to 'can_forge_blocks'
Browse files Browse the repository at this point in the history
  • Loading branch information
jutaro committed Apr 16, 2024
1 parent 41b6f0a commit ed0aa57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cardano-node/src/Cardano/Node/Tracing/Tracers/Startup.hs
Expand Up @@ -276,7 +276,7 @@ instance ( Show (BlockNodeToNodeVersion blk)
]

asMetrics (BlockForgingUpdate b) =
[ IntM "isForging"
[ IntM "can_forge_blocks"
(case b of
EnabledBlockForging -> 1
DisabledBlockForging -> 0
Expand Down
2 changes: 1 addition & 1 deletion cardano-node/src/Cardano/Tracing/Tracers.hs
Expand Up @@ -354,7 +354,7 @@ mkTracers blockConfig tOpts@(TracingOnLegacy trSel) tr nodeKern ekgDirect enable
case mbEKGDirect of
Just ekgDirect' ->
case ev of
BlockForgingUpdate b -> sendEKGDirectInt ekgDirect' "isForge"
BlockForgingUpdate b -> sendEKGDirectInt ekgDirect' "can_forge_blocks"
(case b of
EnabledBlockForging -> 1 :: Int
DisabledBlockForging -> 0 :: Int
Expand Down

0 comments on commit ed0aa57

Please sign in to comment.