| 38 | int64_t getVirtualSize() override { return GetVirtualTransactionSize(*m_tx); } |
| 39 | |
| 40 | bool commit(WalletValueMap value_map, |
| 41 | WalletOrderForm order_form, |
| 42 | std::string from_account, |
| 43 | std::string& reject_reason) override |
| 44 | { |
| 45 | LOCK2(cs_main, m_wallet.cs_wallet); |
| 46 | CValidationState state; |
| 47 | if (!m_wallet.CommitTransaction(m_tx, std::move(value_map), std::move(order_form), std::move(from_account), m_key, g_connman.get(), state)) { |
| 48 | reject_reason = state.GetRejectReason(); |
| 49 | return false; |
| 50 | } |
| 51 | return true; |
| 52 | } |
| 53 | |
| 54 | CTransactionRef m_tx; |
| 55 | CWallet& m_wallet; |
no test coverage detected