indexer: move hasRaw check to txindexer

This commit is contained in:
Buck Perley 2019-06-13 13:29:11 -05:00 committed by Buck Perley
parent fb753a4de3
commit b14cd52070
No known key found for this signature in database
GPG Key ID: 655248EB912C5A3D
2 changed files with 1 additions and 2 deletions

View File

@ -412,8 +412,6 @@ class Indexer extends EventEmitter {
*/
async _addBlock(meta, block, view) {
assert(block.hasRaw(), 'Expected raw data for block.');
const start = util.bench();
if (meta.height !== this.height + 1)

View File

@ -186,6 +186,7 @@ class TXIndexer extends Indexer {
*/
async indexBlock(meta, block, view) {
assert(block.hasRaw(), 'Expected raw data for block.');
const brecord = new BlockRecord({
block: meta.hash,
time: block.time