limit transaction size

This commit is contained in:
Miguel Freitas 2014-01-09 12:21:58 -02:00
parent 17af248840
commit 23cb6fbdb6

View File

@ -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