mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-27 23:34:20 +00:00
Fixed keva_namespace transaction propagation.
Now it crashed maybe when connecting block.
This commit is contained in:
parent
2ba7b82896
commit
d341a86c09
@ -397,6 +397,13 @@ CheckKevaTransaction (const CTransaction& tx, unsigned nHeight,
|
||||
name input that is being updated. */
|
||||
#endif
|
||||
|
||||
if (nameOpOut.isNamespaceRegistration()) {
|
||||
if (nameOpOut.getOpNamespaceDisplayName().size () > MAX_VALUE_LENGTH) {
|
||||
return state.Invalid (error ("CheckNameTransaction: display name value too long"));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
assert (nameOpOut.isAnyUpdate());
|
||||
if (nameIn == -1) {
|
||||
return state.Invalid(error("CheckNameTransaction: update without"
|
||||
|
@ -81,7 +81,7 @@ bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType, const bool w
|
||||
|
||||
bool IsStandardTx(const CTransaction& tx, std::string& reason, const bool witnessEnabled)
|
||||
{
|
||||
if (tx.nVersion > CTransaction::MAX_STANDARD_VERSION || tx.nVersion < 1) {
|
||||
if (!tx.IsKevacoin() && (tx.nVersion > CTransaction::MAX_STANDARD_VERSION || tx.nVersion < 1)) {
|
||||
reason = "version";
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user