Blockchain in Javascript – Mining Rewards & Transactions (Part 3)

Implementing miner rewards and basic transactions in our Javascript based blockchain.

Mining rewards steadily introduce new coins into the system.

OOPS, I made a small mistake! In the minePendingTransactions() method, you have to pass the hash of the previous block when you’re creating a new Block() instance. This was fixed on GitHub:

► Source code
Available on GitHub:
https://github.com/SavjeeTutorials/SavjeeCoin

(Visited 33 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

tether
Tether (USDT) 0,840280 0,02%
usd-coin
USD Coin (USDC) 0,840280 0,27%
zcash
Zcash (ZEC) 188,02 12,11%
tezos
Tezos (XTZ) 5,46 1,01%
uniswap
Uniswap (UNI) 25,12 1,20%
bitcoin
Bitcoin (BTC) 50.188,24 1,37%
bitcoin-cash
Bitcoin Cash (BCH) 581,29 5,21%
ethereum
Ethereum (ETH) 1.806,17 0,55%
litecoin
Litecoin (LTC) 217,30 11,27%
dash
Dash (DASH) 244,76 6,27%
cardano
Cardano (ADA) 1,03 1,34%
chainlink
Chainlink (LINK) 27,44 0,44%
compound-governance-token
Compound (COMP) 378,19 0,07%
cosmos
Cosmos (ATOM) 18,22 2,36%
dai
Dai (DAI) 0,840265 0,10%
monero
Monero (XMR) 250,08 0,49%
omisego
OMG Network (OMG) 8,26 4,69%
polkadot
Polkadot (DOT) 34,14 3,18%
siacoin
Siacoin (SC) 0,023314 6,20%
stellar
Stellar (XLM) 0,514743 16,93%