fn is_already_submitted_error(error: &Map<String, Value>) -> bool
Expand description
Parses errors from electrum-client to determine if the transaction is already submitted and can be ignored.
Electrs maps daemon errors to a generic error code (2) instead of using the error codes returned from bitcoin core’s RPC (-27). There’s an open PR to use the correct error codes, but until that’s available we match the error based on the message text.