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
|
||||
* (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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user