mirror of
https://github.com/GOSTSec/gostexplr
synced 2025-03-09 20:11:13 +00:00
Sync blockchain script fixed, some styling
This commit is contained in:
parent
4072006a63
commit
376b3ce7a2
@ -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();
|
||||
|
@ -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,15 +72,10 @@ form.search input[type="text"] {
|
||||
padding: .2em;
|
||||
}
|
||||
|
||||
.header h1 a:hover {
|
||||
border-bottom: 3px solid;
|
||||
border-bottom-color: #CF7F7F;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.capitalize {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
}
|
||||
|
@ -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…
x
Reference in New Issue
Block a user