Skip to content

Commit

Permalink
style: code on markdown, cursor on bitcoin QR
Browse files Browse the repository at this point in the history
  • Loading branch information
studioTeaTwo committed Dec 5, 2023
1 parent 8c96710 commit 412454a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
15 changes: 14 additions & 1 deletion posts/001_challege-time/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,23 @@ date: 2023-12-04

## Now on TESTNET

All you need is to get the preimage of the invoice below and to input it in devtools. Chop your own wood, and it will warm you twice.
We took off from simnet and are in a global network.

It's a challege time!

All you need is to get the `preimage` of the invoice below and to input it in devtools. I assume you need to take some actions. Chop your own wood, and it will warm you twice.

<hr id="l402" hidden>

🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉

![SuccessKid](https://upload.wikimedia.org/wikipedia/en/f/ff/SuccessKid.jpg)

Paths are made by walking.

note: action list to input the preimage
- Prepare the wallet for the testnet
- Get tBTC
- Decode the invoice and get this node ID
- Connect to the node and open a channel
- Pay the invoice and write down the preimage
4 changes: 2 additions & 2 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const handle: Handle = async ({ event, resolve }) => {
throw new Error(body.reason);
}
const challenge = res.headers.get('WWW-Authenticate');
console.log('header', challenge)
console.log('header', challenge);
result = getToken(challenge);
console.log('new challenge ', result);
} catch (error) {
Expand Down Expand Up @@ -129,7 +129,7 @@ function isWaitingToPayInvoice(record) {
function getToken(challenge: string) {
const tokens = challenge.split(' ');
const macaroon = tokens[1].replace('macaroon=', '');
const invoice = tokens[2].replace('invoice=','');
const invoice = tokens[2].replace('invoice=', '');
return {
macaroon,
invoice
Expand Down
1 change: 1 addition & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
.bitcoin-donation {
border: transparent;
background-color: transparent;
cursor: pointer;
}
.donation {
display: flex;
Expand Down
6 changes: 6 additions & 0 deletions src/routes/articles/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
max-width: 100%;
height: auto;
}
:global(.post code) {
background-color: ghostwhite;
font-size: 0.9rem;
border-radius: 0.4rem;
padding: 0.2rem 0.5rem;
}
article {
min-width: 90vw;
inline-size: 90vw;
Expand Down

0 comments on commit 412454a

Please sign in to comment.