clndash: dont forget CLNDASH_ID
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -51,6 +51,7 @@ If you’re reading this and still excited — you’re the exact audience.
|
|||||||
2. Set them as environment variables:
|
2. Set them as environment variables:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
export CLNDASH_ID="03f3c108ccd536b8526841f0a5c58212bb9e6584a1eb493080e7c1cc34f82dad71"
|
||||||
export CLNDASH_HOST="node.example.com:9735"
|
export CLNDASH_HOST="node.example.com:9735"
|
||||||
export CLNDASH_RUNE="your_rune_here"
|
export CLNDASH_RUNE="your_rune_here"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -97,9 +97,9 @@ impl ClnDash {
|
|||||||
|
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
let key = SecretKey::new(&mut rand::thread_rng());
|
let key = SecretKey::new(&mut rand::thread_rng());
|
||||||
let their_pubkey = PublicKey::from_str(
|
let their_pubkey = PublicKey::from_str(&std::env::var("CLNDASH_ID").unwrap_or(
|
||||||
"03f3c108ccd536b8526841f0a5c58212bb9e6584a1eb493080e7c1cc34f82dad71",
|
"03f3c108ccd536b8526841f0a5c58212bb9e6584a1eb493080e7c1cc34f82dad71".to_string(),
|
||||||
)
|
))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let host = std::env::var("CLNDASH_HOST").unwrap_or("ln.damus.io:9735".to_string());
|
let host = std::env::var("CLNDASH_HOST").unwrap_or("ln.damus.io:9735".to_string());
|
||||||
|
|||||||
Reference in New Issue
Block a user