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