Skip to content

Commit 032694d

Browse files
committed
Handle possibility of empty incoming reorg as channel flush.
1 parent 296df01 commit 032694d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/protocols/protocol_block_out.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ bool protocol_block_out::handle_reorganized(code ec, size_t fork_height,
438438
}
439439

440440
// Nothing to do, a channel is stopping but it's not this one.
441-
if (!incoming)
441+
if (!incoming || incoming->empty())
442442
return true;
443443

444444
// Do not announce blocks to peer if too far behind.

0 commit comments

Comments
 (0)