Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
chore: use mempool.space for lightning node observer (#397)
Browse files Browse the repository at this point in the history
* chore: use mempool.space for lightning node observer

* fix: fix prettier
  • Loading branch information
Extheoisah authored Feb 6, 2023
1 parent 6aeb758 commit 07cb47f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
17 changes: 17 additions & 0 deletions pages/[username]/print.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default function ({

return (
<>
{/* FIXME: Avoid duplicate code and use one component for both print and web display */}
<div style={{ display: "none" }}>
<Container fluid ref={componentRef}>
<br />
Expand All @@ -77,6 +78,14 @@ export default function ({
logoImage="/BBW-QRLOGO.png"
logoWidth={250}
/>
<Card.Text>
<strong>
Having trouble scanning this QR code with your wallet?
</strong>{" "}
Some wallets do not support printed QR codes like this one. Scan
with the camera app on your phone to be taken to a webpage where you
can create a fresh invoice for paying from any Lightning wallet.
</Card.Text>
</Card.Text>
</Card.Body>
</Card>
Expand Down Expand Up @@ -105,6 +114,14 @@ export default function ({
logoWidth={100}
/>
</Card.Text>
<Card.Text
style={{ fontSize: "13px", maxWidth: "500px", margin: "0 auto" }}
>
<strong>Having trouble scanning this QR code with your wallet?</strong>{" "}
Some wallets do not support printed QR codes like this one. Scan with
the camera app on your phone to be taken to a webpage where you can
create a fresh invoice for paying from any Lightning wallet.
</Card.Text>
</Card.Body>
</Card>
</Col>
Expand Down
7 changes: 3 additions & 4 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ const GET_NODE_STATS = gql`
`

function Home() {
const nodeUrl =
GRAPHQL_URI.indexOf("testnet") === -1
? `https://1ml.com/testnet/node/`
: `https://1ml.com/node/`
const nodeUrl = GRAPHQL_URI.includes("staging")
? `https://mempool.space/signet/lightning/node/`
: `https://mempool.space/lightning/node/`
const { loading, error, data } = useQuery(GET_NODE_STATS)

const router = useRouter()
Expand Down

0 comments on commit 07cb47f

Please sign in to comment.