Skip to content

Introduce ledger.rollback_failed stat counter#3746

Merged
theohax merged 2 commits intofix-unit-test-confirmation_height.conflict_rollback_cementedfrom
introduce-rollback-failed-stat-counter
Apr 6, 2022
Merged

Introduce ledger.rollback_failed stat counter#3746
theohax merged 2 commits intofix-unit-test-confirmation_height.conflict_rollback_cementedfrom
introduce-rollback-failed-stat-counter

Conversation

@theohax
Copy link
Copy Markdown
Contributor

@theohax theohax commented Mar 2, 2022

Also, use that counter in confirmation_height.conflict_rollback_cemented unit test.

Based off of #3745

@theohax theohax added the quality improvements This item indicates the need for or supplies changes that improve maintainability label Mar 2, 2022
@theohax theohax requested a review from clemahieu March 2, 2022 16:40
@theohax theohax self-assigned this Mar 2, 2022
@clemahieu
Copy link
Copy Markdown
Contributor

This is missing the string name for the enumeration:

/Users/clemahieu/nano-node.src/nano/lib/stats.cpp:544:10: warning: enumeration value 'rollback_failed' not handled in switch [-Wswitch]
switch (detail)
^
/Users/clemahieu/nano-node.src/nano/lib/stats.cpp:544:10: note: add missing switch cases
switch (detail)

@dsiganos dsiganos force-pushed the fix-unit-test-confirmation_height.conflict_rollback_cemented branch from 39334ba to 6bc31d3 Compare March 30, 2022 11:29
@theohax theohax force-pushed the introduce-rollback-failed-stat-counter branch from c3740c8 to 1502a73 Compare April 6, 2022 09:06
@theohax theohax force-pushed the introduce-rollback-failed-stat-counter branch from 1502a73 to b4bfc6e Compare April 6, 2022 09:13
@theohax theohax merged commit de7c26f into fix-unit-test-confirmation_height.conflict_rollback_cemented Apr 6, 2022
@theohax theohax deleted the introduce-rollback-failed-stat-counter branch April 6, 2022 12:28
theohax added a commit that referenced this pull request Apr 6, 2022
* Added lots of comments and made some improvements to conflict_rollback_cemented

* Introduce `ledger.rollback_failed` stat counter (#3746)

* Use ledger.rollback_failed in confirmation_height.conflict_rollback_cemented

Co-authored-by: Dimitrios Siganos <dimitris@siganos.org>
@zhyatt zhyatt added this to the V24.0 milestone Apr 6, 2022
@zhyatt zhyatt added debug Updates assisting with debugging and development efforts documentation This item indicates the need for or supplies updated or expanded documentation labels Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debug Updates assisting with debugging and development efforts documentation This item indicates the need for or supplies updated or expanded documentation quality improvements This item indicates the need for or supplies changes that improve maintainability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants