Merge pull request #798 from bucko13/indexer-hasraw

move hasRaw check to txindexer
This commit is contained in:
Braydon Fuller 2019-07-03 09:08:52 -07:00
commit 4f7e79bfdf
No known key found for this signature in database
GPG Key ID: F24F232D108B3AD4
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