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 169 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

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

eos
EOS (EOS) 0,969527 7,05%
aave
Aave (AAVE) 103,69 0,37%
the-graph
The Graph (GRT) 0,292529 0,97%
kusama
Kusama (KSM) 48,40 0,06%
waves
Waves (WAVES) 2,82 6,32%
dash
Dash (DASH) 34,54 6,76%
bitcoin
Bitcoin (BTC) 57.010,42 0,18%
ethereum
Ethereum (ETH) 3.138,80 0,89%
cardano
Cardano (ADA) 0,661598 2,47%
tether
Tether (USDT) 0,921604 0,07%
xrp
XRP (XRP) 0,572063 0,45%
solana
Solana (SOL) 118,52 0,11%
polkadot
Polkadot (DOT) 8,32 1,35%
usd-coin
USDC (USDC) 0,920939 0,03%
dogecoin
Dogecoin (DOGE) 0,125286 5,59%
uniswap
Uniswap (UNI) 11,42 0,25%
terra-luna
Terra Luna Classic (LUNC) 0,000159 1,09%
litecoin
Litecoin (LTC) 82,92 0,04%
chainlink
Chainlink (LINK) 19,05 3,18%
bitcoin-cash
Bitcoin Cash (BCH) 438,03 18,63%
algorand
Algorand (ALGO) 0,218287 1,16%
matic-network
Polygon (MATIC) 0,989803 0,20%
stellar
Stellar (XLM) 0,123878 1,77%
cosmos
Cosmos Hub (ATOM) 10,93 0,30%
filecoin
Filecoin (FIL) 8,24 1,37%
tron
TRON (TRX) 0,129479 0,14%
ethereum-classic
Ethereum Classic (ETC) 31,31 2,93%
dai
Dai (DAI) 0,920421 0,10%
tezos
Tezos (XTZ) 1,26 3,41%
monero
Monero (XMR) 137,37 4,73%