From 6b6f4ee29fde3c6c85944326a5a5ff5732edea23 Mon Sep 17 00:00:00 2001 From: dimxy Date: Fri, 1 Mar 2019 00:25:31 +0500 Subject: [PATCH] corr condition to '>=2' in detect old-style data (for 'o' asset cancels) --- src/cc/CCtokensOpRet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/CCtokensOpRet.cpp b/src/cc/CCtokensOpRet.cpp index 9271b01a9..4c6dc4b6d 100644 --- a/src/cc/CCtokensOpRet.cpp +++ b/src/cc/CCtokensOpRet.cpp @@ -235,7 +235,7 @@ uint8_t DecodeTokenOpRet(const CScript scriptPubKey, uint8_t &evalCodeTokens, ui if (ccType == 2) ss >> voutPubkey2; if (!ss.eof()) { ss >> voldstyledata; - }) && voldstyledata.size() > 2 && + }) && voldstyledata.size() >= 2 && (voldstyledata.begin()[0] == 0x11 /*EVAL_ROGUE*/ && IS_CHARINSTR(voldstyledata.begin()[1], "RHQKG") || voldstyledata.begin()[0] == EVAL_ASSETS && IS_CHARINSTR(voldstyledata.begin()[1], "sbSBxo")) ;