aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.h
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2017-10-06 10:14:09 +0900
committerstoffu <stoffu@protonmail.ch>2017-10-07 12:46:09 +0900
commit7b8d3ec6ba9932a8ebc509f382458ca6988d96ac (patch)
tree0022ae97c04bc7ff81b8d60c444167181eb0e84c /src/simplewallet/simplewallet.h
parentMerge pull request #2548 (diff)
downloadmonero-7b8d3ec6ba9932a8ebc509f382458ca6988d96ac.tar.xz
wallet-cli: add --do-not-relay option
Diffstat (limited to 'src/simplewallet/simplewallet.h')
-rw-r--r--src/simplewallet/simplewallet.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.h b/src/simplewallet/simplewallet.h
index 6c6d0cf05..5a038e9a3 100644
--- a/src/simplewallet/simplewallet.h
+++ b/src/simplewallet/simplewallet.h
@@ -205,6 +205,12 @@ namespace cryptonote
*/
std::string get_mnemonic_language();
+ /*!
+ * \brief When --do-not-relay option is specified, save the raw tx hex blob to a file instead of calling m_wallet->commit_tx(ptx).
+ * \param ptx_vector Pending tx(es) created by transfer/sweep_all
+ */
+ void commit_or_save(std::vector<tools::wallet2::pending_tx>& ptx_vector, bool do_not_relay);
+
//----------------- i_wallet2_callback ---------------------
virtual void on_new_block(uint64_t height, const cryptonote::block& block);
virtual void on_money_received(uint64_t height, const crypto::hash &txid, const cryptonote::transaction& tx, uint64_t amount);
@@ -285,6 +291,7 @@ namespace cryptonote
bool m_allow_mismatched_daemon_version;
bool m_restoring; // are we restoring, by whatever method?
uint64_t m_restore_height; // optional
+ bool m_do_not_relay;
epee::console_handlers_binder m_cmd_binder;