Comparing version 3.0.1 to 3.1.0
{ | ||
"name": "blockcast", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "A multi-transaction protocol for storing data in the Bitcoin blockchain.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -87,3 +87,2 @@ var txHexToJSON = require('bitcoin-tx-hex-to-json'); | ||
var vout = tx.vout; | ||
var dataOutput; | ||
for (var j = vout.length - 1; j >= 0; j--) { | ||
@@ -96,3 +95,2 @@ var output = vout[j]; | ||
var parsedLength = dataPayload.parse(data); | ||
dataOutput = parsedLength ? j : 0; | ||
transactionTotal = parsedLength ? parsedLength : transactionTotal; | ||
@@ -112,3 +110,3 @@ payloads.push(data); | ||
} | ||
var prevTxid = tx.vin[dataOutput].txid; | ||
var prevTxid = tx.vin[tx.vin.length-1].txid; | ||
if (!prevTxid) { | ||
@@ -115,0 +113,0 @@ callback("missing: " + (allTransactions.length + 1), false); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57885
1200