flocore-node/bin/start-libbitcoind.js
Braydon Fuller 682f3999ec Fix bug with transaction message processing
- Copy the message so that the message can be later processed
- Connect at the front to be able to scan but not seek
- Emit event after process message and accept to mempool
- Include node buffer, hash and mempool status of the transaction in result
2015-08-07 11:05:04 -04:00

29 lines
514 B
JavaScript

#!/usr/bin/env node
'use strict';
var chainlib = require('chainlib');
var log = chainlib.log;
process.title = 'libbitcoind';
/**
* daemon
*/
var daemon = require('../').daemon({
datadir: process.env.BITCORENODE_DIR || '~/.bitcoin',
network: process.env.BITCORENODE_NETWORK || 'livenet'
});
daemon.on('ready', function() {
log.info('ready');
});
daemon.on('error', function(err) {
log.info('error="%s"', err.message);
});
daemon.on('open', function(status) {
log.info('status="%s"', status);
});