Update fcoin

This commit is contained in:
Sky Young 2019-07-19 15:19:59 -06:00
parent 10b25628ba
commit 3a2f8d19de
3 changed files with 1569 additions and 2068 deletions

View File

@ -11,24 +11,24 @@ var Bcoin = function(options) {
Bcoin.prototype.start = function(callback) { Bcoin.prototype.start = function(callback) {
var self = this; var self = this;
self._bcoin = bcoin.fullnode(self._config); self._bcoin = new bcoin.FullNode(self._config);
bcoin.set(self._config.network || 'main') //bcoin.set(self._config.network || 'main')
const walletPlugin = bcoin.wallet.plugin; //const walletPlugin = bcoin.wallet.plugin;
// Make fcoin add the wallet plugin // Make fcoin add the wallet plugin
self._bcoin.use(walletPlugin) //self._bcoin.use(walletPlugin)
// bzmq allows zmq connections to fcoin // bzmq allows zmq connections to fcoin
self._bcoin.use(bzmq) //self._bcoin.use(bzmq)
self._bzmq = self._bcoin.require('zmq') //self._bzmq = self._bcoin.require('zmq')
log.info('Starting Fcoin full node...'); log.info('Starting fcoin FullNode...');
self._bcoin.open().then(function() { self._bcoin.open().then(function() {
// Startup the wallet plugin // Startup the wallet plugin
self._walletdb = self._bcoin.require('walletdb'); //self._walletdb = self._bcoin.require('walletdb');
self._walletdb.open().then(function() { // self._walletdb.open().then(function() {
// Continue bcoin startup // Continue bcoin startup
self._bcoin.connect().then(function() { self._bcoin.connect().then(function() {
@ -38,7 +38,7 @@ Bcoin.prototype.start = function(callback) {
callback(); callback();
}); });
}) // })
}); });
}; };
@ -52,14 +52,13 @@ Bcoin.prototype.stop = function() {
Bcoin.prototype._getConfig = function(options) { Bcoin.prototype._getConfig = function(options) {
var config = { var config = {
db: 'leveldb',
checkpoints: true, checkpoints: true,
network: options.network || 'main', network: options.network || 'main',
listen: true, listen: true,
logConsole: true, logConsole: true,
logLevel: 'info', logLevel: 'info',
port: options.port, port: options.port,
persistent: true, 'persistent-mempool': true,
workers: true, workers: true,
config: true config: true
}; };

3607
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -37,18 +37,17 @@
"commander": "^2.8.1", "commander": "^2.8.1",
"errno": "^0.1.4", "errno": "^0.1.4",
"express": "^4.13.3", "express": "^4.13.3",
"fcoin": "1.0.1", "fcoin": "https://github.com/OstlerDev/fcoin#bcoin-1.0.2",
"flocore-lib": "0.15.1", "flocore-lib": "0.15.1",
"flocore-p2p": "5.0.0-beta.6", "flocore-p2p": "https://github.com/oipwg/flocore-p2p#update-fcoin",
"florincoind-rpc": "0.7.1", "florincoind-rpc": "0.7.1",
"flosight-api": "^5.0.0-beta.68", "flosight-api": "https://github.com/oipwg/flosight-api#update-fcoin",
"flosight-ui": "^5.0.0-beta.72", "flosight-ui": "^5.0.0-beta.72",
"leveldown": "^2.0.0", "leveldown": "^2.0.0",
"levelup": "^2.0.0", "levelup": "^2.0.0",
"liftoff": "^2.2.0", "liftoff": "^2.2.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"lru-cache": "^4.1.1", "lru-cache": "^4.1.1",
"memwatch-next": "^0.3.0",
"mkdirp": "0.5.0", "mkdirp": "0.5.0",
"path-is-absolute": "^1.0.0", "path-is-absolute": "^1.0.0",
"socket.io": "^1.4.5", "socket.io": "^1.4.5",