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