Splitting the detection for outputs that we own into a separate `wallet_extract_owned_outputs` function and use it when the broadcast succeeds to re-add the change output back to the database.