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 pools = require('../pools.json');
|
||||||
var LRU = require('lru-cache');
|
var LRU = require('lru-cache');
|
||||||
var Common = require('./common');
|
var Common = require('./common');
|
||||||
|
var bcoin = require('fcoin');
|
||||||
var JsonStream = require('JSONStream');
|
var JsonStream = require('JSONStream');
|
||||||
|
|
||||||
function BlockController(options) {
|
function BlockController(options) {
|
||||||
@ -208,7 +209,7 @@ BlockController.prototype._getBlockSummary = function(hash, moreTimestamp, next)
|
|||||||
return 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,
|
// 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
|
// but possible if there was a very recent reorg and the header
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "flosight-api",
|
"name": "flosight-api",
|
||||||
"description": "A Florincoin blockchain REST and web socket API service for Flocore Node.",
|
"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",
|
"repository": "git://github.com/bitpay/flosight-api.git",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/bitpay/flosight-api/issues"
|
"url": "https://github.com/bitpay/flosight-api/issues"
|
||||||
@ -30,6 +30,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"JSONStream": "^1.3.1",
|
"JSONStream": "^1.3.1",
|
||||||
"async": "*",
|
"async": "*",
|
||||||
|
"fcoin": "1.0.0-beta.17",
|
||||||
"flocore-lib": "0.15.0",
|
"flocore-lib": "0.15.0",
|
||||||
"flocore-message": "^1.0.3",
|
"flocore-message": "^1.0.3",
|
||||||
"body-parser": "^1.13.3",
|
"body-parser": "^1.13.3",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user