diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index 43fa3fdfb969d..bec571440cc79 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -218,7 +218,7 @@ static void MutateTxAddInput(CMutableTransaction& tx, const std::string& strInpu uint256 txid(uint256S(strTxid)); static const unsigned int minTxOutSz = 9; - static const unsigned int maxVout = MAX_BLOCK_BASE_SIZE / minTxOutSz; + static const unsigned int maxVout = MAX_TX_BASE_SIZE / minTxOutSz; // extract and validate vout std::string strVout = vStrInputParts[1];