diff --git a/bin/syncBlockchain.babel.js b/bin/syncBlockchain.babel.js index 9cd9fb4..99dab88 100644 --- a/bin/syncBlockchain.babel.js +++ b/bin/syncBlockchain.babel.js @@ -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(); diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index dd2df84..077a136 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -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; -} \ No newline at end of file +} diff --git a/views/layout.jade b/views/layout.jade index a643648..e5ef35a 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -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=">>")