Skip to content

Commit

Permalink
whitepaper extracter: block for non-mainnet
Browse files Browse the repository at this point in the history
looks dumb when it blows up and shows an iframe on testnet
  • Loading branch information
janoside committed Apr 8, 2021
1 parent 81803b3 commit c63289f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion views/bitcoin-whitepaper.pug
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@ block content
a(href="./bitcoin.pdf") /bitcoin.pdf
|.

iframe(src="./bitcoin.pdf", style="width: 100%;", height="800")
if (global.activeBlockchain == "main")
iframe(src="./bitcoin.pdf", style="width: 100%;", height="800")

else
+warningAlert
.mb-2 Whoops! The Bitcoin Whitepaper is embedded in a particular transaction in the mainnet blockchain. It looks like this node is configured for a different network, so the data is not available to be extracted.
| Try running a mainnet node to use this tool.

0 comments on commit c63289f

Please sign in to comment.