-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction large error message change #1438
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -1024,7 +1024,7 @@ bool CSparkWallet::CreateSparkMintTransactions( | |||||
// Limit size | ||||||
CTransaction txConst(tx); | ||||||
if (GetTransactionWeight(txConst) >= MAX_STANDARD_TX_WEIGHT) { | ||||||
strFailReason = _("Transaction too large"); | ||||||
strFailReason = _("This transaction exceeds the transaction size limit of 100 kB, please select less inputs or consolidate your UTXOs before trying to send again"); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure error message consistency and clarity. - strFailReason = _("This transaction exceeds the transaction size limit of 100 kB, please select less inputs or consolidate your UTXOs before trying to send again");
+ strFailReason = _("This transaction exceeds the transaction size limit of 100 kB. Please select fewer inputs or consolidate your UTXOs before trying to send again."); The error message should maintain grammatical consistency ("fewer" instead of "less" for countable items like inputs) and clarity (adding a period before the suggestion). This change aligns with the updated messages in other parts of the codebase. Committable suggestion
Suggested change
|
||||||
return false; | ||||||
} | ||||||
dPriority = txConst.ComputePriority(dPriority, nBytes); | ||||||
|
@@ -1536,7 +1536,7 @@ CWalletTx CSparkWallet::CreateSparkSpendTransaction( | |||||
} | ||||||
|
||||||
if (GetTransactionWeight(tx) >= MAX_NEW_TX_WEIGHT) { | ||||||
throw std::runtime_error(_("Transaction too large")); | ||||||
throw std::runtime_error(_("This transaction exceeds the transaction size limit of 100 kB, please select less inputs or consolidate your UTXOs before trying to send again")); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure error message consistency and clarity. - throw std::runtime_error(_("This transaction exceeds the transaction size limit of 100 kB, please select less inputs or consolidate your UTXOs before trying to send again"));
+ throw std::runtime_error(_("This transaction exceeds the transaction size limit of 100 kB. Please select fewer inputs or consolidate your UTXOs before trying to send again.")); Similar to the previous comment, this error message should also be updated for grammatical accuracy and consistency with other updated messages in the codebase. Committable suggestion
Suggested change
|
||||||
} | ||||||
|
||||||
// check fee | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest something like
to make things clearer for non-technical users