The get_next_block function in the validation stream was using node_db::list_blocks, which contains invalid blocks. It was by chance (caused by block address hash orderings) that the test can_process_valid_and_invalid_blocks was passing. To resolve this, added a new query in the database that lists blocks that have not been checked yet. This query filters out blocks in the failed_blocks table.
Word
get_next_block
function in the validation stream was usingnode_db::list_blocks
, which contains invalid blocks. It was by chance (caused by block address hash orderings) that the testcan_process_valid_and_invalid_blocks
was passing. To resolve this, added a new query in the database that lists blocks that have not been checked yet. This query filters out blocks in thefailed_blocks
table.Closes #90