fix issues with ConnectionTor example and Connection class

This commit is contained in:
Ryan X. Charles 2014-04-22 22:28:31 -03:00
parent ba692aaa20
commit 75d2d0d390
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;