eos icon indicating copy to clipboard operation
eos copied to clipboard

nodeos result in "unable to find last irreversible block to write" error

Open vicraft18 opened this issue 8 years ago • 3 comments

eos_issue The error is throw by chain_controller.cpp line 1847 // Write newly irreversible blocks to disk. First, get the number of the last block on disk... auto old_last_irreversible_block = _block_log.head(); unsigned last_block_on_disk = 0; // If this is null, there are no blocks on disk, so the zero is correct if (old_last_irreversible_block) last_block_on_disk = old_last_irreversible_block->block_num();

if (last_block_on_disk < new_last_irreversible_block_num) { for (auto block_to_write = last_block_on_disk + 1; block_to_write <= new_last_irreversible_block_num; ++block_to_write) { auto block = fetch_block_by_number(block_to_write); FC_ASSERT( block, "unable to find last irreversible block to write" ); _block_log.append(*block); applied_irreversible_block(*block); } }

vicraft18 avatar Apr 17 '18 09:04 vicraft18

image

Same issue using the dawn-v3.0.0 tag

This issue seems to have been caused when an account executes the setprods function after the eosio.system has already been established (post-BIOS step).

DenisCarriere avatar Apr 19 '18 14:04 DenisCarriere

@vicraft18 do you have the same problem with the latest version?

andriantolie avatar Jul 04 '18 08:07 andriantolie

I checked this issue on v1.1, executing setprods after eosio.system is established doesn't reproducer this issue anymore. Since chain controller has been refactored a lot for v1.0.0, I guess this issue is already obsolete. Please reopen if you still see the same problem

andriantolie avatar Jul 18 '18 08:07 andriantolie