diff options
author | Johnson Lau <jl2012@xbt.hk> | 2018-04-27 01:24:48 +0800 |
---|---|---|
committer | Johnson Lau <jl2012@xbt.hk> | 2018-05-05 00:00:28 +0800 |
commit | 2f1a30c63e421b191c62059132b1cd40c24bd4d5 (patch) | |
tree | 38c1f3ddbfb92a907290769220556ecc2c200054 /src/wallet/wallet.cpp | |
parent | 627c3762ce5d8ce097f70c7fb52a3640246fae9b (diff) | |
download | bitcoin-2f1a30c63e421b191c62059132b1cd40c24bd4d5.tar.xz |
Fix MAX_STANDARD_TX_WEIGHT check
As suggested by the constant name and its comment in policy.h, a transaction with a weight of exactly MAX_STANDARD_TX_WEIGHT should be allowed
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 9533e6ff56..5bdb3fe294 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3053,7 +3053,7 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac tx = MakeTransactionRef(std::move(txNew)); // Limit size - if (GetTransactionWeight(*tx) >= MAX_STANDARD_TX_WEIGHT) + if (GetTransactionWeight(*tx) > MAX_STANDARD_TX_WEIGHT) { strFailReason = _("Transaction too large"); return false; |