diff --git a/controller/src/controller.rs b/controller/src/controller.rs index 4952aff8..3af87acf 100644 --- a/controller/src/controller.rs +++ b/controller/src/controller.rs @@ -31,6 +31,7 @@ use grin_wallet_util::OnionV3Address; use hyper::body; use hyper::header::HeaderValue; use hyper::{Body, Request, Response, StatusCode}; +use qr_code::QrCode; use serde::{Deserialize, Serialize}; use serde_json; use std::collections::HashMap; @@ -351,7 +352,11 @@ where warn!("HTTP Foreign listener started."); if let Some(a) = address { - warn!("Slatepack Address is: {}", a); + let qr_string = match QrCode::new(a.to_string()) { + Ok(qr) => qr.to_string(false, 3), + Err(_) => "Failed to generate QR code!".to_string(), + }; + warn!("Slatepack Address is: {}\n{}", a, qr_string); } api_thread