diff --git a/examples/ConnectionTor.js b/examples/ConnectionTor.js index 2d9d8a6..c96040f 100644 --- a/examples/ConnectionTor.js +++ b/examples/ConnectionTor.js @@ -1,5 +1,5 @@ -var Peer = require('../Peer'); -var Connection = require('../Connection'); +var Peer = require('../lib/Peer'); +var Connection = require('../lib/Connection'); var dns = require('dns'); // get a peer from dns seed diff --git a/lib/Connection.js b/lib/Connection.js index 4b40d16..1377545 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -18,7 +18,7 @@ var Parser = imports.Parser || require('../util/BinaryParser'); var buffertools = imports.buffertools || require('buffertools'); var doubleSha256 = imports.doubleSha256 || util.twoSha256; var SecureRandom = imports.SecureRandom || require('./SecureRandom'); -var nonce = function() {return SecureRandom.getPseudoRandomBuffer(8)}; +var nonce = SecureRandom.getPseudoRandomBuffer(8); var BIP0031_VERSION = 60000;