Auto merge of #1501 - ebfull:100kb-max-tx, r=ebfull

Make 100KB transaction size limit a consensus rule, rather than a standard rule

Closes #1475
This commit is contained in:
zkbot
2016-10-10 15:39:42 -04:00
6 changed files with 28 additions and 24 deletions

View File

@@ -2471,7 +2471,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend,
// Limit size
unsigned int nBytes = ::GetSerializeSize(*(CTransaction*)&wtxNew, SER_NETWORK, PROTOCOL_VERSION);
if (nBytes >= MAX_STANDARD_TX_SIZE)
if (nBytes >= MAX_TX_SIZE)
{
strFailReason = _("Transaction too large");
return false;