Merge pull request #368 from Sexual/patch-1
Add node.start to Node Constructor
This commit is contained in:
commit
d0b78f52ec
@ -32,6 +32,10 @@ var configuration = {
|
|||||||
|
|
||||||
var node = new Node(configuration);
|
var node = new Node(configuration);
|
||||||
|
|
||||||
|
node.start(function() {
|
||||||
|
//start the node so the node.on('ready') is actually called.
|
||||||
|
});
|
||||||
|
|
||||||
node.on('ready', function() {
|
node.on('ready', function() {
|
||||||
console.log('Bitcoin Node Ready');
|
console.log('Bitcoin Node Ready');
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user