@bitcoinerlab/discovery
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -655,5 +655,6 @@ "use strict"; | ||
throw new Error(`unset index ${index} for descriptor ${descriptor}`); | ||
if (outputData.txIds.includes(txId)) | ||
throw new Error(`txId ${txId} was already pushed or part of the discovery object`); | ||
outputData.txIds.push(txId); | ||
//Note that update is called twice (for inputs and outputs), so | ||
//don't push twice when auto-sending from same utxo to same output | ||
if (!outputData.txIds.includes(txId)) | ||
outputData.txIds.push(txId); | ||
if (!txMap[txId]) | ||
@@ -660,0 +661,0 @@ txMap[txId] = txData; //Only add it once |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/bitcoinerlab/discovery", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"author": "Jose-Luis Landabaso", | ||
@@ -47,4 +47,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@bitcoinerlab/descriptors": "^2.1.0", | ||
"@bitcoinerlab/explorer": "^0.3.0", | ||
"@bitcoinerlab/descriptors": "^2.2.0", | ||
"@bitcoinerlab/explorer": "^0.3.2", | ||
"@bitcoinerlab/secp256k1": "^1.1.1", | ||
@@ -51,0 +51,0 @@ "@types/memoizee": "^0.4.8", |
147763
2565