tx: comments and addr fixes.
This commit is contained in:
parent
fa167d9a8c
commit
3baaeadd14
@ -409,6 +409,7 @@ TX.prototype.hasWitness = function hasWitness() {
|
|||||||
* @param {Script} prev - Previous output script or redeem script
|
* @param {Script} prev - Previous output script or redeem script
|
||||||
* (in the case of witnesspubkeyhash, this should be the generated
|
* (in the case of witnesspubkeyhash, this should be the generated
|
||||||
* p2pkh script).
|
* p2pkh script).
|
||||||
|
* @param {Amount} value - Previous output value.
|
||||||
* @param {SighashType} type - Sighash type.
|
* @param {SighashType} type - Sighash type.
|
||||||
* @param {Number} version - Sighash version (0=legacy, 1=segwit).
|
* @param {Number} version - Sighash version (0=legacy, 1=segwit).
|
||||||
* @returns {Buffer} Signature hash.
|
* @returns {Buffer} Signature hash.
|
||||||
@ -608,6 +609,7 @@ TX.prototype.hashSize = function hashSize(index, prev, type) {
|
|||||||
* @private
|
* @private
|
||||||
* @param {Number} index
|
* @param {Number} index
|
||||||
* @param {Script} prev
|
* @param {Script} prev
|
||||||
|
* @param {Amount} value
|
||||||
* @param {SighashType} type
|
* @param {SighashType} type
|
||||||
* @returns {Buffer}
|
* @returns {Buffer}
|
||||||
*/
|
*/
|
||||||
@ -1079,7 +1081,7 @@ TX.prototype.getHashes = function getHashes(view, enc) {
|
|||||||
return Object.keys(table);
|
return Object.keys(table);
|
||||||
}
|
}
|
||||||
|
|
||||||
hashes = this.getAddresses();
|
hashes = this.getAddresses(view);
|
||||||
|
|
||||||
for (i = 0; i < hashes.length; i++)
|
for (i = 0; i < hashes.length; i++)
|
||||||
hashes[i] = hashes[i].getHash();
|
hashes[i] = hashes[i].getHash();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user