corr test code for spending marker F

This commit is contained in:
dimxy
2019-01-22 20:37:41 +05:00
parent 3865cae643
commit 098ba877fb
2 changed files with 9 additions and 4 deletions

View File

@@ -635,10 +635,11 @@ public:
// get funcId for prev tx:
uint8_t funcId = DecodeHeirEitherOpRet(prevVout[prevVout.size()-1].scriptPubKey, tokenid, fundingTxidInOpret, dummyIsHeirSpendingBegan, true);
if (funcId == 'F' && prevN == 1) // do not allow to spend 'F' marker's vout
if (funcId == 'F' && prevN == 1) { // do not allow to spend 'F' marker's vout
message = std::string("spending marker not allowed");
return false;
}
}
return true;
}
};