Merge pull request #3105 from codablock/pr_backport_10854

Backport bitcoin#10854: Avoid using sizes on non-fixed-width types to derive protocol constants
This commit is contained in:
UdjinM6 2019-09-24 17:41:20 +03:00 committed by GitHub
commit d6ca9a78ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3826,7 +3826,7 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CWalletT
vecTxDSInTmp.clear();
for (const auto& coin : setCoins) {
CTxIn txin = CTxIn(coin.outpoint,CScript(),
std::numeric_limits<unsigned int>::max()-1);
CTxIn::SEQUENCE_FINAL - 1);
vecTxDSInTmp.push_back(CTxDSIn(txin, coin.txout.scriptPubKey));
txNew.vin.push_back(txin);
}