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

Method commit

src/interfaces/wallet.cpp:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 3

RecoverMethod · 0.80
TxnCommitMethod · 0.80
sendCoinsMethod · 0.80

Calls 3

CommitTransactionMethod · 0.80
getMethod · 0.80
GetRejectReasonMethod · 0.80

Tested by

no test coverage detected