2. Added node binding.gyp build script 3. Adjust authors and removed unneeded npm modules 4. Removed unneeded polling of hook packets every 50ms in bitcoind.js 5. Removed hard-coded path to --prefix
25 lines
400 B
JavaScript
Executable File
25 lines
400 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
/**
|
|
* bitcoind.js example
|
|
*/
|
|
|
|
process.title = 'bitcoind.js';
|
|
|
|
/**
|
|
* bitcoind
|
|
*/
|
|
var bitcoindjsConf = process.env('BITCOINDJS_DIR');
|
|
|
|
var bitcoind = require('../')({
|
|
directory: '~/.libbitcoind-example'
|
|
});
|
|
|
|
bitcoind.on('error', function(err) {
|
|
bitcoind.log('error="%s"', err.message);
|
|
});
|
|
|
|
bitcoind.on('open', function(status) {
|
|
bitcoind.log('status="%s"', status);
|
|
});
|