Skip to content

Commit

Permalink
Allow 0 VTBs in pop tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Warchant committed Jan 9, 2020
1 parent c705ecf commit a364800
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/vbk/interpreter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,6 @@ inline bool EvalScriptImpl(const CScript& script, std::vector<std::vector<unsign
return set_error(serror, SCRIPT_ERR_VBK_ATVFAIL);
}

if (isPublicationsTx && pub.vtbs.empty()) {
// must contain at least one VTB
return set_error(serror, SCRIPT_ERR_VBK_VTBFAIL);
}

// set return value of publications
if (publications != nullptr) {
*publications = pub;
Expand Down

0 comments on commit a364800

Please sign in to comment.