fix peer.
This commit is contained in:
parent
616d9bd7f3
commit
46d7fba13a
@ -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}
|
||||
*/
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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++)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user