Browse Source

fix issues with ConnectionTor example and Connection class

patch-2
Ryan X. Charles 11 years ago
parent
commit
75d2d0d390
  1. 4
      examples/ConnectionTor.js
  2. 2
      lib/Connection.js

4
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

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

Loading…
Cancel
Save