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

You might be interested in

LEAVE YOUR COMMENT

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

compound-governance-token
Compound (COMP) 252,18 2,12%
dash
Dash (DASH) 137,74 0,94%
zcash
Zcash (ZEC) 117,54 1,29%
yearn-finance
yearn.finance (YFI) 29.965,94 1,62%
waves
Waves (WAVES) 15,39 8,84%
bitcoin
Bitcoin (BTC) 31.828,81 1,51%
ethereum
Ethereum (ETH) 1.965,08 2,37%
tether
Tether (USDT) 0,825008 1,25%
cardano
Cardano (ADA) 1,23 1,56%
xrp
XRP (XRP) 0,694752 0,74%
dogecoin
Dogecoin (DOGE) 0,253750 0,99%
polkadot
Polkadot (DOT) 18,98 1,55%
usd-coin
USD Coin (USDC) 0,824727 0,38%
uniswap
Uniswap (UNI) 18,31 0,03%
bitcoin-cash
Bitcoin Cash (BCH) 498,82 0,56%
chainlink
Chainlink (LINK) 19,44 0,46%
matic-network
Polygon (MATIC) 1,24 1,04%
litecoin
Litecoin (LTC) 138,60 0,12%
stellar
Stellar (XLM) 0,265523 0,57%
ethereum-classic
Ethereum Classic (ETC) 45,80 0,71%
eos
EOS (EOS) 4,07 0,18%
tron
TRON (TRX) 0,059236 2,85%
filecoin
Filecoin (FIL) 57,41 0,16%
aave
Aave (AAVE) 243,43 0,58%
monero
Monero (XMR) 228,30 1,51%
dai
Dai (DAI) 0,825008 0,66%
tezos
Tezos (XTZ) 2,78 7,02%
cosmos
Cosmos (ATOM) 11,73 11,89%
algorand
Algorand (ALGO) 0,874508 3,95%
kusama
Kusama (KSM) 289,43 4,12%