Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.cpp
Show First 20 Lines • Show All 226 Lines • ▼ Show 20 Lines | public: | ||||
return {}; | return {}; | ||||
} | } | ||||
return tx; | return tx; | ||||
} | } | ||||
void commitTransaction(CTransactionRef tx, WalletValueMap value_map, | void commitTransaction(CTransactionRef tx, WalletValueMap value_map, | ||||
WalletOrderForm order_form) override { | WalletOrderForm order_form) override { | ||||
auto locked_chain = m_wallet->chain().lock(); | auto locked_chain = m_wallet->chain().lock(); | ||||
LOCK(m_wallet->cs_wallet); | LOCK(m_wallet->cs_wallet); | ||||
TxValidationState state; | |||||
m_wallet->CommitTransaction(std::move(tx), std::move(value_map), | m_wallet->CommitTransaction(std::move(tx), std::move(value_map), | ||||
std::move(order_form), state); | std::move(order_form)); | ||||
} | } | ||||
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 { | ||||
auto locked_chain = m_wallet->chain().lock(); | auto locked_chain = m_wallet->chain().lock(); | ||||
LOCK(m_wallet->cs_wallet); | LOCK(m_wallet->cs_wallet); | ||||
return m_wallet->AbandonTransaction(*locked_chain, txid); | return m_wallet->AbandonTransaction(*locked_chain, txid); | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |