fix peer.

This commit is contained in:
Christopher Jeffrey 2016-07-01 03:13:50 -07:00
parent 616d9bd7f3
commit 46d7fba13a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 5 additions and 11 deletions

View File

@ -189,9 +189,6 @@ Outpoint.prototype.inspect = function inspect() {
* @property {Number} sequence - nSequence.
* @property {Witness} witness - Witness (empty if not present).
* @property {Coin?} coin - Previous output.
* @property {String} type - Script type.
* @property {String?} address - Input address.
* @property {Boolean} mutable
*/
function Input(options) {
@ -241,7 +238,7 @@ Input.prototype.fromOptions = function fromOptions(options) {
/**
* Instantiate an Input from options object.
* @param {NakedInput} options - The jsonified input object.
* @param {NakedInput} options
* @returns {Input}
*/

View File

@ -19,9 +19,6 @@ var assert = utils.assert;
* @param {NakedOutput} options
* @property {Amount} value - Value in satoshis.
* @property {Script} script
* @property {String} type - Script type.
* @property {String?} address - Input address.
* @property {Boolean} mutable
*/
function Output(options) {

View File

@ -546,7 +546,7 @@ Peer.prototype.setFeeRate = function setFeeRate(rate) {
*/
Peer.prototype.destroy = function destroy() {
var i, j, hashes, hash, queue;
var i, j, keys, cmd, queue;
if (this.destroyed)
return;
@ -561,10 +561,10 @@ Peer.prototype.destroy = function destroy() {
this.ping.timer = null;
}
hashes = Object.keys(this.requests.map);
keys = Object.keys(this.requests.map);
for (i = 0; i < hashes.length; i++) {
hash = hashes[i];
for (i = 0; i < keys.length; i++) {
cmd = keys[i];
queue = this.requests.map[cmd];
for (j = 0; j < queue.length; j++)