Skip to content

Commit d3384c4

Browse files
committed
trivial: allow non-standard type with empty scriptPubKey
1 parent 81faf71 commit d3384c4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/addresstype.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,16 @@ bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet)
105105
}
106106
case TxoutType::MULTISIG:
107107
case TxoutType::NULL_DATA:
108-
case TxoutType::NONSTANDARD:
108+
case TxoutType::NONSTANDARD: {
109109
addressRet = CNoDestination(scriptPubKey);
110+
111+
// Blackcoin: Allow non-standard type with empty scriptPubKey
112+
if (scriptPubKey.empty()) {
113+
return true;
114+
}
115+
110116
return false;
117+
}
111118
} // no default case, so the compiler can warn about missing cases
112119
assert(false);
113120
}

0 commit comments

Comments
 (0)