Skip to content

Commit a3fe49a

Browse files
committed
Disable forward_reference exception to unconfirmability.
1 parent 5a4d801 commit a3fe49a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/protocols/protocol_block_in_31800.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,15 @@ bool protocol_block_in_31800::handle_receive_block(const code& ec,
323323
return false;
324324
}
325325

326-
if (code == system::error::forward_reference)
327-
{
328-
LOGR("Disordered block [" << encode_hash(hash) << ":" << height
329-
<< " txs(" << block->transactions() << ")"
330-
<< " segregated(" << block->is_segregated() << ").");
331-
stop(code);
332-
return false;
333-
}
326+
// TODO: why were we not setting this block as unconfirmable?
327+
////if (code == system::error::forward_reference)
328+
////{
329+
//// LOGR("Disordered block [" << encode_hash(hash) << ":" << height
330+
//// << " txs(" << block->transactions() << ")"
331+
//// << " segregated(" << block->is_segregated() << ").");
332+
//// stop(code);
333+
//// return false;
334+
////}
334335

335336
// Actual block represented by the hash is unconfirmable.
336337
if (!query.set_block_unconfirmable(link))

0 commit comments

Comments
 (0)