| 17 | |
| 18 | namespace node { |
| 19 | static 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 | |
| 32 | TransactionError BroadcastTransaction(NodeContext& node, |
| 33 | const CTransactionRef tx, |
no test coverage detected