Browse Source

Sync blockchain script fixed, some styling

stuff
xcps 7 years ago
parent
commit
376b3ce7a2
  1. 17
      bin/syncBlockchain.babel.js
  2. 18
      public/stylesheets/style.css
  3. 2
      views/layout.jade

17
bin/syncBlockchain.babel.js

@ -143,17 +143,16 @@ async function syncBlockchain() { @@ -143,17 +143,16 @@ async function syncBlockchain() {
let currentHeight = await getCurrentHeight();
console.log('\x1b[36m%s\x1b[0m', 'currentHeight is', currentHeight);
while (syncedHeight < currentHeight) {
syncedHeight = await syncNextBlock(syncedHeight);
console.log('\x1b[36m%s\x1b[0m', 'syncedHeight: ', syncedHeight)
try {
while (syncedHeight < currentHeight) {
syncedHeight = await syncNextBlock(syncedHeight);
console.log('\x1b[36m%s\x1b[0m', 'syncedHeight: ', syncedHeight)
}
} catch (e) {
console.log('=====', e);
process.exit(0);
}
process.exit(0);
}
var postData = JSON.stringify({
'method': 'getinfo',
'params': [],
'id': 1
});
syncBlockchain();

18
public/stylesheets/style.css

@ -34,19 +34,30 @@ a:hover { @@ -34,19 +34,30 @@ a:hover {
align: center;
outline: none;
}
.header h1 a:hover {
border-bottom: 3px solid;
border-bottom-color: #CF7F7F;
}
.header .logo {
float: left;
}
.header .logo a img:hover {
filter: brightness(1.25);
}
.header .logo a img {
height: 84px;
height: 77px;
position: relative;
margin-right: 1em;
}
.search-wrapper {
margin-top: 1em;
}
form.search input[type="submit"] {
padding: .2em .7em;
}
@ -61,11 +72,6 @@ form.search input[type="text"] { @@ -61,11 +72,6 @@ form.search input[type="text"] {
padding: .2em;
}
.header h1 a:hover {
border-bottom: 3px solid;
border-bottom-color: #CF7F7F;
}
.content {
margin-top: 2em;
}

2
views/layout.jade

@ -13,7 +13,7 @@ html @@ -13,7 +13,7 @@ html
img(src='/images/gostcoin-b.png')
h1
a(href='/') GOSTcoin blockchain explorer
div
div.search-wrapper
form.search(action="/search/", method="POST")
input(type="text", name="search" placeholder="Search by transaction id, block hash/index or address", size="68")
input(type="submit", value=">>")

Loading…
Cancel
Save