Skip to content

Commit 1e34c98

Browse files
authored
Merge pull request #1762 from evoskuil/master
Invalidate witness for non-witness tx (prevents serialization).
2 parents d0152e9 + 3e6622c commit 1e34c98

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)