MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / HandleATMPError

Function HandleATMPError

src/node/transaction.cpp:19–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18namespace node {
19static TransactionError HandleATMPError(const TxValidationState& state, std::string& err_string_out)
20{
21 err_string_out = state.ToString();
22 if (state.IsInvalid()) {
23 if (state.GetResult() == TxValidationResult::TX_MISSING_INPUTS) {
24 return TransactionError::MISSING_INPUTS;
25 }
26 return TransactionError::MEMPOOL_REJECTED;
27 } else {
28 return TransactionError::MEMPOOL_ERROR;
29 }
30}
31
32TransactionError BroadcastTransaction(NodeContext& node,
33 const CTransactionRef tx,

Callers 1

BroadcastTransactionFunction · 0.85

Calls 3

IsInvalidMethod · 0.80
GetResultMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected