tx: minor.
This commit is contained in:
parent
fdb668aea3
commit
3e7c921ad3
@ -962,7 +962,7 @@ TX.prototype.getOutputValue = function getOutputValue() {
|
||||
* Get all input addresses.
|
||||
* @private
|
||||
* @param {CoinView} view
|
||||
* @returns {Object}
|
||||
* @returns {Array} [addrs, table]
|
||||
*/
|
||||
|
||||
TX.prototype._getInputAddresses = function getInputAddresses(view) {
|
||||
@ -994,7 +994,7 @@ TX.prototype._getInputAddresses = function getInputAddresses(view) {
|
||||
/**
|
||||
* Get all output addresses.
|
||||
* @private
|
||||
* @returns {Object}
|
||||
* @returns {Array} [addrs, table]
|
||||
*/
|
||||
|
||||
TX.prototype._getOutputAddresses = function getOutputAddresses() {
|
||||
@ -1023,7 +1023,7 @@ TX.prototype._getOutputAddresses = function getOutputAddresses() {
|
||||
* Get all addresses.
|
||||
* @private
|
||||
* @param {CoinView} view
|
||||
* @returns {Object}
|
||||
* @returns {Array} [addrs, table]
|
||||
*/
|
||||
|
||||
TX.prototype._getAddresses = function getAddresses(view) {
|
||||
@ -1329,7 +1329,7 @@ TX.prototype.getSigopsCost = function getSigopsCost(view, flags) {
|
||||
if (flags & Script.flags.VERIFY_P2SH)
|
||||
cost += this.getScripthashSigops(view) * scale;
|
||||
|
||||
if ((flags & Script.flags.VERIFY_WITNESS) === 0)
|
||||
if (!(flags & Script.flags.VERIFY_WITNESS))
|
||||
return cost;
|
||||
|
||||
for (let input of this.inputs) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user