diff --git a/lib/services/block/index.js b/lib/services/block/index.js index 8f6327115..a91e1ae17 100644 --- a/lib/services/block/index.js +++ b/lib/services/block/index.js @@ -621,7 +621,7 @@ BlockService.prototype._sync = function() { } - this._header.blockServiceSyncing = false; + this._header.blockServiceSyncing = false; this._initialSync = false; log.info('Block Service: The best block hash is: ' + self._tip.hash + ' at height: ' + self._tip.height); diff --git a/routes.txt b/routes.txt deleted file mode 100644 index 3a5168eb7..000000000 --- a/routes.txt +++ /dev/null @@ -1,34 +0,0 @@ - get('/addrs/:addrs/utxo', this.cacheShort(), addresses.checkAddrs.bind(addresses), addresses.multiutxo.bind(addresses)); - get('/addr/:addr/utxo', this.cacheShort(), addresses.checkAddr.bind(addresses), addresses.utxo.bind(addresses)); - post('/addrs/utxo', this.cacheShort(), addresses.checkAddrs.bind(addresses), addresses.multiutxo.bind(addresses)); - get('/addrs/:addrs/txs', this.cacheShort(), addresses.checkAddrs.bind(addresses), addresses.multitxs.bind(addresses)); - get('/addr/:addr', this.cacheShort(), addresses.checkAddr.bind(addresses), addresses.show.bind(addresses)); - post('/addrs/txs', this.cacheShort(), addresses.checkAddrs.bind(addresses), addresses.multitxs.bind(addresses)); - - get('/addr/:addr/totalReceived', this.cacheShort(), addresses.checkAddr.bind(addresses), addresses.totalReceived.bind(addresses)); - get('/addr/:addr/totalSent', this.cacheShort(), addresses.checkAddr.bind(addresses), addresses.totalSent.bind(addresses)); - get('/addr/:addr/unconfirmedBalance', this.cacheShort(), addresses.checkAddr.bind(addresses), addresses.unconfirmedBalance.bind(addresses)); - - get('/tx/:txid', this.cacheShort(), transactions.show.bind(transactions)); - param('txid', transactions.transaction.bind(transactions)); - get('/txs', this.cacheShort(), transactions.list.bind(transactions)); - post('/tx/send', transactions.send.bind(transactions)); - get('/rawtx/:txid', this.cacheLong(), transactions.showRaw.bind(transactions)); - param('txid', transactions.rawTransaction.bind(transactions)); - - get('/blocks', this.cacheShort(), blocks.list.bind(blocks)); - get('/block/:blockHash', this.cacheShort(), blocks.checkBlockHash.bind(blocks), blocks.show.bind(blocks)); - param('blockHash', blocks.block.bind(blocks)); - param('blockHash', blocks.rawBlock.bind(blocks)); - get('/block-index/:height', this.cacheShort(), blocks.blockIndex.bind(blocks)); - param('height', blocks.blockIndex.bind(blocks)); - get('/rawblock/:blockHash', this.cacheLong(), blocks.checkBlockHash.bind(blocks), blocks.showRaw.bind(blocks)); - - get('/status', this.cacheShort(), status.show.bind(status)); - get('/sync', this.cacheShort(), status.sync.bind(status)); - get('/peer', this.cacheShort(), status.peer.bind(status)); - get('/version', this.cacheShort(), status.version.bind(status)); - get('/messages/verify', messages.verify.bind(messages)); - post('/messages/verify', messages.verify.bind(messages)); - get('/utils/estimatefee', utils.estimateFee.bind(utils)); - get('/currency', currency.index.bind(currency));