lhartikk / naivecoin

A tutorial for building a cryptocurrency

Home Page:https://lhartikk.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

transaction.ts issue

trungtaba opened this issue · comments

commented

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