-
Notifications
You must be signed in to change notification settings - Fork 228
MX-17032 Added Metrics for Tracked Blocks #7331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5f4206d
04651cc
c1594cf
2ef401c
b9e3070
6beffce
8d7935f
9ed5c2e
8db8127
b6d80dc
e4998af
54d9872
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1075,6 +1075,9 @@ func (sp *shardProcessor) CommitBlock( | |
| return err | ||
| } | ||
|
|
||
| sp.appStatusHandler.SetUInt64Value(common.MetricNumTrackedBlocks, sp.dataPool.Transactions().GetNumTrackedBlocks()) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should this be called also for
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, there is no Mempool on meta, so there is no SelectTransactions. We wouldn't have what to track here |
||
| sp.appStatusHandler.SetUInt64Value(common.MetricNumTrackedAccounts, sp.dataPool.Transactions().GetNumTrackedAccounts()) | ||
|
|
||
| err = sp.dataPool.Transactions().OnExecutedBlock(headerHandler) | ||
| if err != nil { | ||
| log.Debug("dataPool.Transactions().OnExecutedBlock()", "error", err) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update comment as well on L302
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done