8000 Fix script size check by gu3 · etherscan-io/Ravencoin@840d470 · GitHub
[go: up one dir, main page]

Skip to content

Commit 840d470

Browse files
committed
Fix script size check by gu3
1 parent 021170a commit 840d470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/script.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ bool CScript::IsAssetScript(int& nType, bool& isOwner) const
244244

245245
bool CScript::IsAssetScript(int& nType, bool& fIsOwner, int& nStartingIndex) const
246246
{
247-
if (this->size() > 30) {
247+
if (this->size() > 31) {
248248
if ((*this)[25] == OP_RVN_ASSET) { // OP_RVN_ASSET is always in the 25 index of the script if it exists
249249
int index = -1;
250250
if ((*this)[27] == RVN_R) { // Check to see if RVN starts at 27 ( this->size() < 105)

0 commit comments

Comments
 (0)
0