mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 14:28:22 +00:00
limit transaction size
This commit is contained in:
parent
17af248840
commit
23cb6fbdb6
@ -481,7 +481,7 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state, int maxHe
|
|||||||
return state.DoS(10, error("CheckTransaction() : username check failed"));
|
return state.DoS(10, error("CheckTransaction() : username check failed"));
|
||||||
}
|
}
|
||||||
// Size limits
|
// Size limits
|
||||||
if (::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION) > MAX_BLOCK_SIZE)
|
if (::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION) > 512)
|
||||||
return state.DoS(100, error("CTransaction::CheckTransaction() : size limits failed"));
|
return state.DoS(100, error("CTransaction::CheckTransaction() : size limits failed"));
|
||||||
|
|
||||||
// Check proof of work matches claimed amount
|
// Check proof of work matches claimed amount
|
||||||
|
Loading…
Reference in New Issue
Block a user