DEV Community

Discussion on: Building a Blockchain in Go PT: IV - Transactions

Collapse
 
crazyoptimist profile image
crazyoptimist • Edited

In the Data Hashing section, {} is missing I think?

txHash = sha256.Sum256(bytes.Join(txHashes, []byte{}))
Enter fullscreen mode Exit fullscreen mode

And in the previous parts, in the proof.go file, the method name was InitNounce, which is changed to InitData without saying explicitly in this part. Maybe need to change it to InitData in the prev parts too? Because it's more meaningful imo.

Collapse
 
nheindev profile image
Noah Hein

If it looks off to you, double check the repl link to see if there's a discrepancy!