aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorhinto.janai <hinto.janai@protonmail.com>2025-07-07 20:38:37 +0000
committerhinto.janai <hinto.janai@protonmail.com>2025-07-08 13:05:25 +0000
commite0df82eb003f76f071755cbf4a85ad7f95a70b0d (patch)
treede4a36f78b5d6fc8b3160dff2892b009780c3c2c /src/simplewallet/simplewallet.cpp
parent76feeb64b7060f588739d1a267bcf8000be6f817 (diff)
downloadmonzero-core-e0df82eb003f76f071755cbf4a85ad7f95a70b0d.tar.gz
monzero-core-e0df82eb003f76f071755cbf4a85ad7f95a70b0d.tar.xz
monzero-core-e0df82eb003f76f071755cbf4a85ad7f95a70b0d.zip
simplewallet: respect `do-not-relay` in `sweep_single`
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index b9e30f9d9..bcad1eed9 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -7622,8 +7622,7 @@ bool simple_wallet::sweep_single(const std::vector<std::string> &args_)
}
else
{
- m_wallet->commit_tx(ptx_vector[0]);
- success_msg_writer(true) << tr("Money successfully sent, transaction: ") << get_transaction_hash(ptx_vector[0].tx);
+ commit_or_save(ptx_vector, m_do_not_relay);
}
}