Skip to content

Commit 46106b3

Browse files
committed
Send not found for invalid witness.
1 parent b6020b1 commit 46106b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/protocols/protocol_explore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ bool protocol_explore::handle_get_input_witness(const code& ec,
471471

472472
const auto& query = archive();
473473
if (const auto witness = query.get_witness(query.to_point(
474-
query.to_tx(*hash), index)))
474+
query.to_tx(*hash), index)); !is_null(witness) && witness->is_valid())
475475
{
476476
switch (media)
477477
{

0 commit comments

Comments
 (0)