Compare commits

...
22 Commits
Author SHA1 Message Date
Thomas Zarebczan 6bf194c448 Update MainController.php
bMvUBo1h5WS46ThHtmfmXftz3z33VHL7wc - holding 6M comm coins
bMgqQqYfwzWWYBk5o5dBMXtCndVAoeqy6h - holding 4M dev fund coins
2018-01-14 12:11:29 -05:00
akinwale 7cd3e5322c Merge pull request #12 from lbryio/add-address
add additional cold storage address
2017-12-28 08:07:32 +01:00
Thomas Zarebczan c82fd1a982 add additional cold storage address 2017-12-20 22:26:10 -05:00
Akinwale Ariwodola efcce65004 changed Google Analytics tracker ID 2017-12-01 10:20:15 +01:00
Akinwale Ariwodola df6264f388 fixed closing div tag in header 2017-11-28 22:29:48 +01:00
Akinwale Ariwodola a99606ecbf Added Google Analytics code 2017-11-28 21:27:37 +01:00
Akinwale Ariwodola f2bf172997 Merge branch 'master' of https://github.com/lbryio/block-explorer into explorer.lbry.io 2017-11-26 13:07:19 +01:00
Akinwale Ariwodola 5db80ac0d4 fixed position of download app link 2017-11-26 13:03:07 +01:00
Josh Finer fe14cd88f0 Update index.ctp 2017-11-25 17:03:01 -05:00
Thomas Zarebczan a855ee3d94 Add more addresses (#7)
* Add more addresses
2017-11-10 09:02:37 -06:00
Akinwale Ariwodola 58620a6298 updated transaction time css 2017-10-09 13:35:18 +01:00
Akinwale Ariwodola 409a0a7da7 fixed getTimestamp error 2017-10-09 13:35:09 +01:00
Akinwale Ariwodola 6e6dcd0613 added created time and block time to transction details page 2017-10-09 13:35:01 +01:00
Akinwale Ariwodola ba995ed51f fix code merge issues 2017-10-09 13:33:39 +01:00
Akinwale Ariwodola e7e444f84a some updates from the explorer.lbry.io branch 2017-10-09 13:30:57 +01:00
Akinwale Ariwodola 1d9dbb802b fix zero price on homepage 2017-10-09 13:29:55 +01:00
Akinwale Ariwodola 85926e316f price changed to display N/A when the value is $0.00 2017-10-09 13:29:43 +01:00
Akinwale Ariwodola 7f701f87d5 removed some unused code 2017-10-09 09:07:38 +01:00
Akinwale Ariwodola 06a495d396 Merge branch 'master' of https://gitlab.com/aureolin/lbryexplorer 2017-09-05 09:46:49 +01:00
Akinwale Ariwodola a19e3abd07 forevermempool fix 2017-09-05 09:46:31 +01:00
Akinwale Ariwodola 66940ac02a cron script modification for lbrycrd blocknotify 2017-08-27 13:50:03 +00:00
Akinwale Ariwodola 5acd8f6039 reduced number of blocksync threads to 2 2017-08-25 16:16:39 +01:00
8 changed files with 39 additions and 31 deletions

No files matched your search

+3
View File
@@ -1,4 +1,7 @@
#!/bin/sh
cd /var/www/lbry.block.ng
bin/cake block parsenewblocks
rm tmp/lock/parsenewblocks
bin/cake block parsetxs
rm tmp/lock/parsetxs
-4
View File
@@ -233,7 +233,3 @@ CREATE TABLE `PriceHistory`
PRIMARY KEY `PK_PriceHistory` (`Id`),
UNIQUE KEY `Idx_PriceHistoryCreated` (`Created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
ALTER TABLE Claims ADD UNIQUE KEY `Idx_ClaimUnique` (`TransactionHash`, `Vout`, `ClaimId`);
ALTER TABLE Addresses ADD COLUMN `Balance` DECIMAL(18,8) AS (`TotalReceived` - `TotalSent`) PERSISTENT AFTER `TotalSent`;
ALTER TABLE Addresses ADD INDEX `Idx_AddressBalance` (`Balance`);
+11 -2
View File
@@ -876,8 +876,17 @@ class MainController extends AppController {
$reservedcommunity = $this->Addresses->find()->select(['Balance'])->where(['Address =' => 'rFLUohPG4tP3gZHYoyhvADCtrDMiaYb7Qd'])->first();
$reservedoperational = $this->Addresses->find()->select(['Balance'])->where(['Address =' => 'r9PGXsejVJb9ZfMf3QVdDEJCzxkd9JLxzL'])->first();
$reservedinstitutional = $this->Addresses->find()->select(['Balance'])->where(['Address =' => 'r9srwX7DEN7Mex3a8oR1mKSqQmLBizoJvi'])->first();
//aux is the address where some of the LBRY operational fund are, but not sold on market.
$reservedaux = $this->Addresses->find()->select(['Balance'])->where(['Address =' => 'bRo4FEeqqxY7nWFANsZsuKEWByEgkvz8Qt'])->first();
//aux is the address of hot wallets and where some of the LBRY operational fund are, but not sold on market.
$reservedaux = $this->Addresses->find()->select(['Balance'])->where(['Address =' => 'bRo4FEeqqxY7nWFANsZsuKEWByEgkvz8Qt'])->first() +
$this->Addresses->find()->select(['Balance'])->where(['Address =' => 'bU2XUzckfpdEuQNemKvhPT1gexQ3GG3SC2'])->first() +
$this->Addresses->find()->select(['Balance'])->where(['Address =' => 'bay3VA6YTQBL4WLobbG7CthmoGeUKXuXkD'])->first() +
$this->Addresses->find()->select(['Balance'])->where(['Address =' => 'bLPbiXBp6Vr3NSnsHzDsLNzoy5o36re9Cz'])->first() +
$this->Addresses->find()->select(['Balance'])->where(['Address =' => 'bMvUBo1h5WS46ThHtmfmXftz3z33VHL7wc'])->first() +
$this->Addresses->find()->select(['Balance'])->where(['Address =' => 'bVUrbCK8hcZ5XWti7b9eNxKEBxzc1rr393'])->first() +
$this->Addresses->find()->select(['Balance'])->where(['Address =' => 'bZja2VyhAC84a9hMwT8dwTU6rDRXowrjxH'])->first() +
$this->Addresses->find()->select(['Balance'])->where(['Address =' => 'bMvUBo1h5WS46ThHtmfmXftz3z33VHL7wc'])->first() +
$this->Addresses->find()->select(['Balance'])->where(['Address =' => 'bMgqQqYfwzWWYBk5o5dBMXtCndVAoeqy6h'])->first();
$reservedtotal = $reservedcommunity->Balance + $reservedoperational->Balance + $reservedinstitutional->Balance + $reservedaux->Balance;
+5 -6
View File
@@ -35,11 +35,6 @@ class BlockShell extends Shell {
$this->out('No arguments specified');
}
public function testtx() {
$raw = '0100000001e4801fa8c9621753410e6c576c73168cc551624e08e4cc56e9a9189e8ebabcc3010000006b483045022100dcc5ae5564353e05cd8415936cdb534a26049a80a9866dbcab5dbb6ab16abbc702203af681fb5fbba5c78af887778aa32f27bc653312322b44c2a78e883e322921790121031c38def6b103b58481818d7d8aba39f9f51798f686ec3332bac23726a23366adffffffff0200e1f50500000000fd3a01b512626c6f636b6578706c6f7265722d686f6d654d0801080110011aa3010801125c080410011a1c4c42525920426c6f636b204578706c6f72657220486f6d6570616765222c574950204c42525920426c6f636b204578706c6f72657220686f6d6520706167652073637265656e73686f742a00320038004a0052005a001a41080110011a3038c6bf4a310d5b172aaae03cffb93e5a27c47f3946f58af0a4b9f99d7be42998f7dcec9b0fb0c124a6477bdb4c5311db2209696d6167652f706e672a5c080110031a401eb69f65768ba2cc347067dfb1317131137f7d685a5e804a4aeedd2385332c70f3ec7632fcebfbc073e37a58dbfbf4e6641853bbfc188b0d8bf27435b540801d22146b2a1d378efcdb7db7a03baa7dfedb86b976bc4a6d7576a914b7182b0f7c896ab240d233f81cb891e3f25e739988ac8085e811000000001976a9146fde27b4dac0b79a9ea06756562a52b019da7a8e88ac00000000';
$decoded = self::decode_tx($raw);
}
public function fixscripthashtx() {
$conn = ConnectionManager::get('default');
$otxs = $this->Outputs->find()->select(['TransactionId'])->distinct(['TransactionId'])->where(['Type' => 'scripthash'])->toArray();
@@ -1298,7 +1293,11 @@ class BlockShell extends Shell {
}
}
} catch (\Exception $e) {
echo "Error occurred processing mempool: " . $e->getMessage() . "\n";
echo "Mempool database error. Attempting to reconnect.\n";
// Final fix for MySQL server has gone away (hopefully)
$conn->disconnect();
$conn->connect();
}
echo "*******************\n";
+1 -1
View File
@@ -9,6 +9,6 @@
<button class="btn btn-inline-search">Search</button>
</div>
</form>
</div
</div>
<div class="clear"></div>
</div>
+8 -14
View File
@@ -16,22 +16,16 @@
<script src="https://use.typekit.net/yst3vhs.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<?php if ($_SERVER['HTTP_HOST'] !== 'local.lbry.block.ng' && $_SERVER['HTTP_HOST'] !== 'explorer.lbry.io'): ?>
<!-- Analytics -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.aureolin.co/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
<?php if ($_SERVER['HTTP_HOST'] === 'explorer.lbry.io'): ?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="//www.googletagmanager.com/gtag/js?id=UA-60403362-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-60403362-4');
</script>
<!-- End Analytics Code -->
<?php endif; ?>
<script type="text/javascript">
+9 -3
View File
@@ -113,10 +113,16 @@
<div class="home-container">
<div class="home-container-cell">
<div class="main">
<div class="title">LBRY Block Explorer</div>
<div class="title">LBRY Block Explorer</div><br>
<form method="get" action="/find">
<input class="search-input" name="q" type="text" placeholder="Enter a block height or hash, claim id or name, transaction hash or address" />
<div class="ctls"><button class="btn btn-search">Search</button> <div class="links"><a href="/realtime">Realtime</a> &bull; <a href="/stats" class="last">Stats</a></div></div>
<div class="ctls">
<div class="left-links"><a href="https://lbry.io/get">Download the LBRY App</a></div>
<button class="btn btn-search">Search</button>
<div class="right-links">
<a href="/realtime">Realtime</a> &bull; <a href="/stats" class="last">Stats</a>
</div>
</div>
</form>
</div>
@@ -244,4 +250,4 @@
</div>
</div>
</div>
</div>
+2 -1
View File
@@ -21,7 +21,8 @@ border-radius: 0 6px 8px 0 }
.home-container-cell .ctls { width: 720px; text-align: center; margin: 24px auto; position: relative }
.home-container-cell .ctls .btn-search { font-size: 115%; display: inline-block; padding: 12px 48px; background: #1e88e5; color: #fff; border-radius: 8px; border: none; font-weight: 300; cursor: pointer }
.home-container-cell .ctls .btn-search:hover { background: #1976d2 }
.home-container-cell .ctls .links { display: inline-block; font-weight: 300; position: absolute; right: 0; padding-top: 12px; }
.home-container-cell .ctls .left-links { display: inline-block; font-weight: 300; position: absolute; left: 0; padding-top: 12px; }
.home-container-cell .ctls .right-links { display: inline-block; font-weight: 300; position: absolute; right: 0; padding-top: 12px; }
.home-container-cell .ctls a { font-size: 115%; display: inline-block; margin-right: 12px }
.home-container-cell .ctls a.last { margin-left: 12px; margin-right: 0 }
.home-container-cell .ctls a:hover { text-decoration: none; color: #1976d2 }