lhartikk / naivecoin

A tutorial for building a cryptocurrency
https://lhartikk.github.io/
Apache License 2.0
531 stars 266 forks source link

transaction.ts issue #11

Open trungtaba opened 6 years ago

trungtaba commented 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);