tx: comments and addr fixes.

This commit is contained in:
Christopher Jeffrey 2016-12-20 00:40:49 -08:00
parent fa167d9a8c
commit 3baaeadd14
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -409,6 +409,7 @@ TX.prototype.hasWitness = function hasWitness() {
* @param {Script} prev - Previous output script or redeem script
* (in the case of witnesspubkeyhash, this should be the generated
* p2pkh script).
* @param {Amount} value - Previous output value.
* @param {SighashType} type - Sighash type.
* @param {Number} version - Sighash version (0=legacy, 1=segwit).
* @returns {Buffer} Signature hash.
@ -608,6 +609,7 @@ TX.prototype.hashSize = function hashSize(index, prev, type) {
* @private
* @param {Number} index
* @param {Script} prev
* @param {Amount} value
* @param {SighashType} type
* @returns {Buffer}
*/
@ -1079,7 +1081,7 @@ TX.prototype.getHashes = function getHashes(view, enc) {
return Object.keys(table);
}
hashes = this.getAddresses();
hashes = this.getAddresses(view);
for (i = 0; i < hashes.length; i++)
hashes[i] = hashes[i].getHash();