Skip to content

Commit 31b1ae9

Browse files
authored
Merge pull request #751 from evoskuil/master
Add troubleshooting events, stop sieve fp logging.
2 parents d135834 + 1eccc93 commit 31b1ae9

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/chasers/chaser_validate.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ void chaser_validate::validate_block(const header_link& link,
219219
}
220220
else if ((ec = validate(bypass, *block, link, ctx)))
221221
{
222+
// Troubleshooting: match this by value/10,000 with block_archived value/10,000.
223+
///////////////////////////////////////////////////////////////////////////
224+
fire(events::template_issued, (ctx.height * 10'000u) + block->segregated());
225+
///////////////////////////////////////////////////////////////////////////
226+
222227
if (!query.set_block_unconfirmable(link))
223228
ec = error::validate4;
224229
}

src/protocols/protocol_block_in_31800.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,14 @@ bool protocol_block_in_31800::handle_receive_block(const code& ec,
366366
<< "] from [" << authority() << "].");
367367

368368
notify(ec, chase::checked, height);
369-
////fire(events::block_archived, height);
370-
fire(events::block_archived, archive().positive_search_count());
371-
fire(events::block_buffered, archive().negative_search_count());
369+
370+
// Troubleshooting: match this by value/10,000 with template_issued value/10,000.
371+
///////////////////////////////////////////////////////////////////////////
372+
fire(events::block_archived, (height * 10'000u) + block->segregated());
373+
///////////////////////////////////////////////////////////////////////////
374+
375+
////fire(events::block_archived, archive().positive_search_count());
376+
////fire(events::block_buffered, archive().negative_search_count());
372377
count(block->serialized_size(true));
373378
map_->erase(it);
374379
if (is_idle())

0 commit comments

Comments
 (0)