Update fcoin
This commit is contained in:
parent
10b25628ba
commit
3a2f8d19de
@ -11,24 +11,24 @@ var Bcoin = function(options) {
|
||||
|
||||
Bcoin.prototype.start = function(callback) {
|
||||
var self = this;
|
||||
self._bcoin = bcoin.fullnode(self._config);
|
||||
self._bcoin = new bcoin.FullNode(self._config);
|
||||
|
||||
bcoin.set(self._config.network || 'main')
|
||||
const walletPlugin = bcoin.wallet.plugin;
|
||||
//bcoin.set(self._config.network || 'main')
|
||||
//const walletPlugin = bcoin.wallet.plugin;
|
||||
|
||||
// Make fcoin add the wallet plugin
|
||||
self._bcoin.use(walletPlugin)
|
||||
//self._bcoin.use(walletPlugin)
|
||||
// bzmq allows zmq connections to fcoin
|
||||
self._bcoin.use(bzmq)
|
||||
self._bzmq = self._bcoin.require('zmq')
|
||||
//self._bcoin.use(bzmq)
|
||||
//self._bzmq = self._bcoin.require('zmq')
|
||||
|
||||
log.info('Starting Fcoin full node...');
|
||||
log.info('Starting fcoin FullNode...');
|
||||
|
||||
self._bcoin.open().then(function() {
|
||||
|
||||
// Startup the wallet plugin
|
||||
self._walletdb = self._bcoin.require('walletdb');
|
||||
self._walletdb.open().then(function() {
|
||||
//self._walletdb = self._bcoin.require('walletdb');
|
||||
// self._walletdb.open().then(function() {
|
||||
|
||||
// Continue bcoin startup
|
||||
self._bcoin.connect().then(function() {
|
||||
@ -38,7 +38,7 @@ Bcoin.prototype.start = function(callback) {
|
||||
callback();
|
||||
});
|
||||
|
||||
})
|
||||
// })
|
||||
});
|
||||
};
|
||||
|
||||
@ -52,14 +52,13 @@ Bcoin.prototype.stop = function() {
|
||||
|
||||
Bcoin.prototype._getConfig = function(options) {
|
||||
var config = {
|
||||
db: 'leveldb',
|
||||
checkpoints: true,
|
||||
network: options.network || 'main',
|
||||
listen: true,
|
||||
logConsole: true,
|
||||
logLevel: 'info',
|
||||
port: options.port,
|
||||
persistent: true,
|
||||
'persistent-mempool': true,
|
||||
workers: true,
|
||||
config: true
|
||||
};
|
||||
|
||||
3607
package-lock.json
generated
3607
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -37,18 +37,17 @@
|
||||
"commander": "^2.8.1",
|
||||
"errno": "^0.1.4",
|
||||
"express": "^4.13.3",
|
||||
"fcoin": "1.0.1",
|
||||
"fcoin": "https://github.com/OstlerDev/fcoin#bcoin-1.0.2",
|
||||
"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",
|
||||
"flosight-api": "^5.0.0-beta.68",
|
||||
"flosight-api": "https://github.com/oipwg/flosight-api#update-fcoin",
|
||||
"flosight-ui": "^5.0.0-beta.72",
|
||||
"leveldown": "^2.0.0",
|
||||
"levelup": "^2.0.0",
|
||||
"liftoff": "^2.2.0",
|
||||
"lodash": "^4.17.4",
|
||||
"lru-cache": "^4.1.1",
|
||||
"memwatch-next": "^0.3.0",
|
||||
"mkdirp": "0.5.0",
|
||||
"path-is-absolute": "^1.0.0",
|
||||
"socket.io": "^1.4.5",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user