Add node.start to node constructur
Spent about 17 hours trying to figure out why my node wasn't starting. Kinda silly to miss something like this.
This commit is contained in:
parent
59701c4c34
commit
7c841e2cdc
|
@ -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