Skip to content

Commit

Permalink
bitcoin-tx: Decouple max-tx-size from max-block-size
Browse files Browse the repository at this point in the history
Calculate limits based on tx size limits, not block size limits.
  • Loading branch information
jgarzik committed Jun 4, 2017
1 parent 20aa121 commit e7a097e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitcoin-tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit e7a097e

Please sign in to comment.