Skip to content

Commit 3e6622c

Browse files
committed
Invalidate witness for non-witness tx (prevents serialization).
1 parent d0152e9 commit 3e6622c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/chain/witness.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void witness::assign_data(reader& source, bool prefix) NOEXCEPT
205205
if (annex::is_annex_pattern(stack_))
206206
annex_ = { stack_.back() };
207207

208-
valid_ = source;
208+
valid_ = source && !stack_.empty();
209209
}
210210

211211
// Serialization.

0 commit comments

Comments
 (0)