Count processed forks in stats (#1646)
This commit is contained in:
parent
88afc90f81
commit
223cdeb854
3 changed files with 5 additions and 0 deletions
|
@ -1565,6 +1565,7 @@ nano::process_return nano::block_processor::process_one (nano::transaction const
|
|||
{
|
||||
// Only let the bootstrap attempt know about forked blocks that not originate recently.
|
||||
node.process_fork (transaction_a, block_a);
|
||||
node.stats.inc (nano::stat::type::ledger, nano::stat::detail::fork, nano::stat::dir::in);
|
||||
}
|
||||
if (node.config.logging.ledger_logging ())
|
||||
{
|
||||
|
|
|
@ -389,6 +389,9 @@ std::string nano::stat::detail_to_string (uint32_t key)
|
|||
case nano::stat::detail::confirm_req:
|
||||
res = "confirm_req";
|
||||
break;
|
||||
case nano::stat::detail::fork:
|
||||
res = "fork";
|
||||
break;
|
||||
case nano::stat::detail::frontier_req:
|
||||
res = "frontier_req";
|
||||
break;
|
||||
|
|
|
@ -209,6 +209,7 @@ public:
|
|||
change,
|
||||
state_block,
|
||||
epoch_block,
|
||||
fork,
|
||||
|
||||
// message specific
|
||||
keepalive,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue