Use fcoin instead of bcoin

This commit is contained in:
Sky Young 2018-05-08 13:48:43 -07:00
parent e0e8db1d43
commit 17a4e0f0cc
9 changed files with 12 additions and 11 deletions

View File

@ -1,6 +1,6 @@
'use strict';
var Block = require('bcoin').block;
var Block = require('fcoin').block;
// stores -- block header as key, block itself as value (optionally)
function Encoding(servicePrefix) {

View File

@ -9,7 +9,7 @@ var log = index.log;
var utils = require('../../utils');
var assert = require('assert');
var constants = require('../../constants');
var bcoin = require('bcoin');
var bcoin = require('fcoin');
var _ = require('lodash');
var LRU = require('lru-cache');

View File

@ -10,7 +10,7 @@ var FeeService = function(options) {
pass: 'local321',
host: 'localhost',
protocol: 'http',
port: 8332
port: 7312
};
BaseService.call(this, options);
this._client = new FlocoreRPC(this._config);

View File

@ -11,7 +11,7 @@ var BN = require('bn.js');
var consensus = require('bcoin').consensus;
var assert = require('assert');
var constants = require('../../constants');
var bcoin = require('bcoin');
var bcoin = require('fcoin');
var HeaderService = function(options) {

View File

@ -1,6 +1,6 @@
'use strict';
var tx = require('bcoin').tx;
var tx = require('fcoin').tx;
function Encoding(servicePrefix) {
this.servicePrefix = servicePrefix;

View File

@ -2,7 +2,7 @@
var index = require('../../');
var log = index.log;
var bcoin = require('bcoin');
var bcoin = require('fcoin');
var Bcoin = function(options) {
this._config = this._getConfig(options);
@ -12,11 +12,11 @@ Bcoin.prototype.start = function(callback) {
var self = this;
self._bcoin = bcoin.fullnode(self._config);
log.info('Starting Bcoin full node...');
log.info('Starting Fcoin full node...');
self._bcoin.open().then(function() {
self._bcoin.connect().then(function() {
log.info('Waiting for Bcoin to sync');
log.info('Waiting for Fcoin to sync');
self._bcoin.startSync();
// this will instruct the p2p service to start trying to connect to bcoin right away
callback();

View File

@ -8,7 +8,7 @@ var log = index.log;
var BaseService = require('../../service');
var assert = require('assert');
var Bcoin = require('./bcoin');
var BcoinTx = require('bcoin').tx;
var BcoinTx = require('fcoin').tx;
var Networks = require('flocore-lib').Networks;
var LRU = require('lru-cache');

View File

@ -1,6 +1,6 @@
'use strict';
var Tx = require('bcoin').tx;
var Tx = require('fcoin').tx;
function Encoding(servicePrefix) {
this.servicePrefix = servicePrefix;

View File

@ -5,7 +5,7 @@
"node": ">=8.0.0"
},
"author": "BitPay <dev@bitpay.com>",
"version": "5.0.0-beta.49",
"version": "5.0.0-beta.50",
"main": "./index.js",
"repository": "git://github.com/bitpay/flocore-node.git",
"homepage": "https://github.com/bitpay/flocore-node",
@ -29,6 +29,7 @@
],
"dependencies": {
"async": "^2.5.0",
"fcoin": "1.0.0-beta.15",
"florincoind-rpc": "0.7.1",
"flocore-lib": "0.15.0",
"flocore-p2p": "5.0.0-beta.2",