Browse Source

- tweaks to make "fun" page a little cleaner

- add first litecoin block with actual tx
fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
7b6ab59d2e
  1. 12
      app/coins/btc.js
  2. 13
      app/coins/ltc.js
  3. 6
      views/fun.pug

12
app/coins/btc.js

@ -85,8 +85,9 @@ module.exports = {
},
historicalData: [
{
type: "block",
type: "blockheight",
date: "2009-01-03",
blockHeight: 0,
blockHash: "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
note: "The bitcoin genesis block.",
referenceUrl: "https://en.bitcoin.it/wiki/Genesis_block"
@ -106,8 +107,9 @@ module.exports = {
referenceUrl: "https://twitter.com/marttimalmi/status/423455561703624704"
},
{
type: "block",
type: "blockheight",
date: "2017-08-24",
blockHeight: 481824,
blockHash: "0000000000000000001c8018d9cb3b742ef25114f27563e3fc4a1902167f9893",
note: "First SegWit block.",
referenceUrl: "https://twitter.com/conio/status/900722226911219712"
@ -141,15 +143,17 @@ module.exports = {
referenceUrl: "https://www.reddit.com/r/Bitcoin/comments/7mhoks/til_in_2011_a_user_running_a_modified_mining/"
},
{
type: "block",
type: "blockheight",
date: "2009-01-12",
blockHeight: 170,
blockHash: "00000000d1145790a8694403d4063f323d499e655c83426834d4ce2f8dd4a2ee",
note: "First block containing a (non-coinbase) transaction.",
referenceUrl: "https://bitcointalk.org/index.php?topic=91806.msg1012234#msg1012234"
},
{
type: "block",
type: "blockheight",
date: "2017-08-25",
blockHeight: 481947,
blockHash: "00000000000000000139cb443e16442fcd07a4a0e0788dd045ee3cf268982016",
note: "First block mined that was greater than 1MB.",
referenceUrl: "https://en.bit.news/bitfury-mined-first-segwit-block-size-1-mb/"

13
app/coins/ltc.js

@ -69,8 +69,9 @@ module.exports = {
},
historicalData: [
{
type: "block",
type: "blockheight",
date: "2011-10-07",
blockHeight: 0,
blockHash: "12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2",
note: "The Litecoin genesis block.",
referenceUrl: "https://medium.com/@SatoshiLite/satoshilite-1e2dad89a017"
@ -81,7 +82,15 @@ module.exports = {
txid: "ce385e55fb2a73fa438426145b074f08314812fa3396472dc572b3079e26e0f9",
note: "First SegWit transaction.",
referenceUrl: "https://twitter.com/satoshilite/status/862345830082138113"
}
},
{
type: "blockheight",
date: "2011-10-13",
blockHeight: 448,
blockHash: "6995d69ce2cb7768ef27f55e02dd1772d452deb44e1716bb1dd9c29409edf252",
note: "The first block containing a (non-coinbase) transaction.",
referenceUrl: ""
},
],
exchangeRateData:{
jsonUrl:"https://api.coinmarketcap.com/v1/ticker/Litecoin/",

6
views/fun.pug

@ -25,9 +25,11 @@ block content
td(class="data-cell monospace")
if (item.type == "tx")
a(href=("/tx/" + item.txid)) Tx:#{item.txid.substring(0, 23)}...
a(href=("/tx/" + item.txid)) Tx #{item.txid.substring(0, 23)}...
else if (item.type == "block")
a(href=("/block/" + item.blockHash)) Block:#{item.blockHash.substring(0, 20)}...
a(href=("/block/" + item.blockHash)) Block #{item.blockHash.substring(0, 20)}...
else if (item.type == "blockheight")
a(href=("/block/" + item.blockHash)) Block ##{item.blockHeight}
td(class="data-cell")
if (item.referenceUrl && item.referenceUrl.trim().length > 0)

Loading…
Cancel
Save