Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.cpp
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | public: | ||||
std::string &fail_reason) override { | std::string &fail_reason) override { | ||||
LOCK2(cs_main, m_wallet.cs_wallet); | LOCK2(cs_main, m_wallet.cs_wallet); | ||||
auto pending = std::make_unique<PendingWalletTxImpl>(m_wallet); | auto pending = std::make_unique<PendingWalletTxImpl>(m_wallet); | ||||
if (!m_wallet.CreateTransaction(recipients, pending->m_tx, | if (!m_wallet.CreateTransaction(recipients, pending->m_tx, | ||||
pending->m_key, fee, change_pos, | pending->m_key, fee, change_pos, | ||||
fail_reason, coin_control, sign)) { | fail_reason, coin_control, sign)) { | ||||
return {}; | return {}; | ||||
} | } | ||||
return std::move(pending); | return pending; | ||||
} | } | ||||
bool transactionCanBeAbandoned(const TxId &txid) override { | bool transactionCanBeAbandoned(const TxId &txid) override { | ||||
return m_wallet.TransactionCanBeAbandoned(txid); | return m_wallet.TransactionCanBeAbandoned(txid); | ||||
} | } | ||||
bool abandonTransaction(const TxId &txid) override { | bool abandonTransaction(const TxId &txid) override { | ||||
LOCK2(cs_main, m_wallet.cs_wallet); | LOCK2(cs_main, m_wallet.cs_wallet); | ||||
return m_wallet.AbandonTransaction(txid); | return m_wallet.AbandonTransaction(txid); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |