Browse Source

limit transaction size

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
23cb6fbdb6
  1. 2
      src/main.cpp

2
src/main.cpp

@ -481,7 +481,7 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state, int maxHe @@ -481,7 +481,7 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state, int maxHe
return state.DoS(10, error("CheckTransaction() : username check failed"));
}
// 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"));
// Check proof of work matches claimed amount

Loading…
Cancel
Save