Minor issue... Apparently false is missing on the return statement of the second if in validateCoinbaseTx, that has a boolean return type. Tutorial has this piece of code in Chapter #3 > Coinbase Transaction. It shouldn't affect the way it works though, since it tests for !validateCoinbaseTx(...) at transaction.ts.
I've opened a PR naivecoin at lhartikk/naivecoin#8.
I'd also issue an PR to the tutorial, but I assume this repo has the generated static code from Jekyll, and I couldn't find another repo with the sources for the website. Let me know if it's there somewhere. :)
Minor issue... Apparently
falseis missing on thereturnstatement of the secondifinvalidateCoinbaseTx, that has abooleanreturn type. Tutorial has this piece of code in Chapter #3 > Coinbase Transaction. It shouldn't affect the way it works though, since it tests for!validateCoinbaseTx(...)at transaction.ts.I've opened a PR naivecoin at lhartikk/naivecoin#8.
I'd also issue an PR to the tutorial, but I assume this repo has the generated static code from Jekyll, and I couldn't find another repo with the sources for the website. Let me know if it's there somewhere. :)