From 474685d7c197cc81aa8484d380d64982f228b661 Mon Sep 17 00:00:00 2001 From: Sky Young Date: Tue, 23 Jul 2019 12:07:15 -0600 Subject: [PATCH] Use correct bcoin Block export --- lib/blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blocks.js b/lib/blocks.js index d2ee84d..be04d1d 100644 --- a/lib/blocks.js +++ b/lib/blocks.js @@ -238,7 +238,7 @@ BlockController.prototype._getBlockSummary = function(hash, moreTimestamp, next) return next(); } - var block = bcoin.block.fromRaw(blockBuffer, 'hex'); + var block = bcoin.Block.fromRaw(blockBuffer, 'hex'); // if we don't we a block header back, this is highly unusual, // but possible if there was a very recent reorg and the header