From ad39c56e9acfa9e8cc7f0da3bc4f7db82329337e Mon Sep 17 00:00:00 2001 From: Bart Wyatt Date: Wed, 17 Oct 2018 09:22:33 -0400 Subject: [PATCH] fix bad assert logic when deferred transaction receipts are presetn --- libraries/chain/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/chain/controller.cpp b/libraries/chain/controller.cpp index c2063c1316c..e03fae1a80f 100644 --- a/libraries/chain/controller.cpp +++ b/libraries/chain/controller.cpp @@ -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; }