Add fcoin instead of bcoin :)
This commit is contained in:
parent
87bd8fa36f
commit
9162a7f01f
@ -8,6 +8,7 @@ var _ = flocore.deps._;
|
||||
var pools = require('../pools.json');
|
||||
var LRU = require('lru-cache');
|
||||
var Common = require('./common');
|
||||
var bcoin = require('fcoin');
|
||||
var JsonStream = require('JSONStream');
|
||||
|
||||
function BlockController(options) {
|
||||
@ -208,7 +209,7 @@ BlockController.prototype._getBlockSummary = function(hash, moreTimestamp, next)
|
||||
return next();
|
||||
}
|
||||
|
||||
var block = flocore.Block.fromRawBlock(blockBuffer);
|
||||
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
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "flosight-api",
|
||||
"description": "A Florincoin blockchain REST and web socket API service for Flocore Node.",
|
||||
"version": "5.0.0-beta.47",
|
||||
"version": "5.0.0-beta.48",
|
||||
"repository": "git://github.com/bitpay/flosight-api.git",
|
||||
"bugs": {
|
||||
"url": "https://github.com/bitpay/flosight-api/issues"
|
||||
@ -30,6 +30,7 @@
|
||||
"dependencies": {
|
||||
"JSONStream": "^1.3.1",
|
||||
"async": "*",
|
||||
"fcoin": "1.0.0-beta.17",
|
||||
"flocore-lib": "0.15.0",
|
||||
"flocore-message": "^1.0.3",
|
||||
"body-parser": "^1.13.3",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user