Skip to content

Commit

Permalink
Merge pull request #6036 from EOSIO/feature/fix-forks-validation-with…
Browse files Browse the repository at this point in the history
…-implicits

fix bad assert logic when deferred transaction receipts are present
  • Loading branch information
heifner authored Oct 17, 2018
2 parents 2232802 + ad39c56 commit 629a987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ struct controller_impl {
}

if ( read_mode == db_read_mode::SPECULATIVE ) {
EOS_ASSERT( head->block && head->block->transactions.size() == head->trxs.size(), block_validate_exception, "attempting to pop a block that was sparsely loaded from a snapshot");
EOS_ASSERT( head->block, block_validate_exception, "attempting to pop a block that was sparsely loaded from a snapshot");
for( const auto& t : head->trxs )
unapplied_transactions[t->signed_id] = t;
}
Expand Down

0 comments on commit 629a987

Please sign in to comment.