aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-15 18:37:38 +0200
committerRiccardo Spagni <ric@spagni.net>2017-10-15 18:37:38 +0200
commit50f0c1f0e051dc44e138132d8c626977e793bc87 (patch)
treee25e170dbd85b8b8bb2b6f0b13b954490a95dacd /src/simplewallet/simplewallet.h
parentMerge pull request #2583 (diff)
parentwallet-cli: add --do-not-relay option (diff)
downloadmonero-50f0c1f0e051dc44e138132d8c626977e793bc87.tar.xz
Merge pull request #2586
7b8d3ec6 wallet-cli: add --do-not-relay option (stoffu)
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 3525e82bc..a1f42ba9d 100644
--- a/src/simplewallet/simplewallet.h
+++ b/src/simplewallet/simplewallet.h
@@ -207,6 +207,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, const cryptonote::subaddress_index& subaddr_index);
@@ -287,6 +293,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;