We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c319e commit ab756baCopy full SHA for ab756ba
src/wallet/spend.cpp
@@ -958,7 +958,8 @@ bool CWallet::CreateTransactionInternal(
958
tx = MakeTransactionRef(std::move(txNew));
959
960
// Limit size
961
- if (static_cast<size_t>(nBytes) > MAX_STANDARD_TX_SIZE) {
+ if ((sign && ::GetSerializeSize(*tx, PROTOCOL_VERSION) > MAX_STANDARD_TX_SIZE) ||
962
+ (!sign && static_cast<size_t>(nBytes) > MAX_STANDARD_TX_SIZE)) {
963
error = _("Transaction too large");
964
return false;
965
}
0 commit comments