Jeiwan / blockchain_go

A simplified blockchain implementation in Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There is a small problem

Panxhang opened this issue · comments

commented

Hi!In the 4th part,If someone transfers money to himself,his account balance will be double。
if out.CanBeUnlockedWith(address) {
unspentTXs = append(unspentTXs, *tx)
}
There is a “break” missing here!This statement is in the blockchain.go。
Thank you very much for your tutorial and please note this little bug~

Yes, I just found it