From fa837b48dd6f28e022d49dbd30912db5b03f88cf Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 30 Jan 2020 15:46:01 -0500 Subject: [PATCH] define sign_txs() and submit_txs() in monero_wallet.h --- src/wallet/monero_wallet.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/wallet/monero_wallet.h b/src/wallet/monero_wallet.h index 510151d..b43435c 100644 --- a/src/wallet/monero_wallet.h +++ b/src/wallet/monero_wallet.h @@ -1103,6 +1103,26 @@ namespace monero { throw runtime_error("parse_tx_set() not supported"); } + /** + * Sign unsigned transactions from a watch-only wallet. + * + * @param unsigned_tx_hex is unsigned transaction hex from when the transactions were created + * @return the signed transaction hex + */ + virtual string sign_txs(const string& unsigned_tx_hex) { + throw runtime_error("parse_tx_set() not supported"); + } + + /** + * Submit signed transactions from a watch-only wallet. + * + * @param signed_tx_hex is signed transaction hex from signTxs() + * @return the resulting transaction hashes + */ + vector submit_txs(const string& signed_tx_hex) { + throw runtime_error("parse_tx_set() not supported"); + } + /** * Sign a message. *