fix issues with ConnectionTor example and Connection class
This commit is contained in:
parent
ba692aaa20
commit
75d2d0d390
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue