Jeiwan / blockchain_go

A simplified blockchain implementation in Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I think outIdx should be replaced by out.Value

yunhua-lee opened this issue · comments

unspentOutputs[txID] = append(unspentOutputs[txID], outIdx)

When I try to run this code and print all the transactions' information, I found that Vout is wrong.
I think outIdx should be replaced by out.Value.

commented

In my opinion, Vout is index of output transaction that'e being used as TXInput in current transaction.