Open trungtaba opened 6 years ago
I think in hasDuplicates() function: const groups = .countBy(txIns, (txIn) => txIn.txOutId + txIn.txOutId); Why we need calculate txIn.txOutId two time? I think it should be: const groups = .countBy(txIns, (txIn) => txIn.txOutId + txIn.txOutIndex);
I think in hasDuplicates() function: const groups = .countBy(txIns, (txIn) => txIn.txOutId + txIn.txOutId); Why we need calculate txIn.txOutId two time? I think it should be: const groups = .countBy(txIns, (txIn) => txIn.txOutId + txIn.txOutIndex);