MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / createTransaction

Method createTransaction

src/interfaces/wallet.cpp:219–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 return m_wallet.ListLockedCoins(outputs);
218 }
219 std::unique_ptr<PendingWalletTx> createTransaction(const std::vector<CRecipient>& recipients,
220 const CCoinControl& coin_control,
221 bool sign,
222 bool no_forkid,
223 int& change_pos,
224 CAmount& fee,
225 std::string& fail_reason) override
226 {
227 LOCK2(cs_main, m_wallet.cs_wallet);
228 auto pending = MakeUnique<PendingWalletTxImpl>(m_wallet);
229 if (!m_wallet.CreateTransaction(recipients, pending->m_tx, pending->m_key, fee, change_pos,
230 no_forkid, fail_reason, coin_control, sign)) {
231 return {};
232 }
233 return std::move(pending);
234 }
235 bool transactionCanBeAbandoned(const uint256& txid) override { return m_wallet.TransactionCanBeAbandoned(txid); }
236 bool abandonTransaction(const uint256& txid) override
237 {

Callers 1

prepareTransactionMethod · 0.80

Calls 1

CreateTransactionMethod · 0.80

Tested by

no test coverage detected