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 135 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,841756 0,13%
aave
Aave (AAVE) 63,07 1,35%
the-graph
The Graph (GRT) 0,118731 5,48%
kusama
Kusama (KSM) 24,59 2,39%
waves
Waves (WAVES) 1,67 0,15%
dash
Dash (DASH) 40,72 2,01%
bitcoin
Bitcoin (BTC) 26.023,33 2,61%
ethereum
Ethereum (ETH) 1.772,42 3,08%
cardano
Cardano (ADA) 0,353436 0,31%
tether
Tether (USDT) 0,933535 0,03%
xrp
XRP (XRP) 0,448610 1,63%
solana
Solana (SOL) 19,32 0,73%
polkadot
Polkadot (DOT) 5,09 1,35%
usd-coin
USD Coin (USDC) 0,932115 0,11%
dogecoin
Dogecoin (DOGE) 0,068469 1,22%
uniswap
Uniswap (UNI) 4,77 1,39%
terra-luna
Terra Luna Classic (LUNC) 0,000082 1,10%
litecoin
Litecoin (LTC) 85,28 2,36%
chainlink
Chainlink (LINK) 6,17 1,85%
bitcoin-cash
Bitcoin Cash (BCH) 108,98 2,26%
algorand
Algorand (ALGO) 0,142615 0,72%
matic-network
Polygon (MATIC) 0,866842 0,60%
stellar
Stellar (XLM) 0,083203 0,97%
cosmos
Cosmos Hub (ATOM) 10,14 2,52%
filecoin
Filecoin (FIL) 4,34 2,27%
tron
TRON (TRX) 0,071966 0,09%
ethereum-classic
Ethereum Classic (ETC) 17,17 0,88%
dai
Dai (DAI) 0,933535 0,02%
tezos
Tezos (XTZ) 0,875801 2,55%
monero
Monero (XMR) 144,97 1,20%