From f7a6790623a634cb4403bacd0ab3bab18c04fac6 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 26 Jul 2017 08:47:47 +0200 Subject: [PATCH] Merge #10854: Avoid using sizes on non-fixed-width types to derive protocol constants. 095b917 Avoid using sizes on non-fixed-width types to derive protocol constants. (Gregory Maxwell) Pull request description: Thanks to awemany for pointing this out. This replaces #10172 which appears to be abandoned, but uses the constants as requested on that PR. Tree-SHA512: 032c0d75b3aaf807a7d0c7fb8ff5515acc45ad58bd00fe81413f900fe02bad900534a970403b9bb568e132c9eddea6043e958daf625e8acc84375bd41ee2e2ef --- src/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 18951bf565..3258ad03b9 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3825,7 +3825,7 @@ bool CWallet::CreateTransaction(const std::vector& vecSend, CWalletT vecTxDSInTmp.clear(); for (const auto& coin : setCoins) { CTxIn txin = CTxIn(coin.outpoint,CScript(), - std::numeric_limits::max()-1); + CTxIn::SEQUENCE_FINAL - 1); vecTxDSInTmp.push_back(CTxDSIn(txin, coin.txout.scriptPubKey)); txNew.vin.push_back(txin); }