Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenphuminh authored Jul 26, 2022
1 parent 93d0610 commit 152da64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ function mine(publicKey, ENABLE_LOGGING) {
chainInfo.transactionPool.forEach(transaction => { gas += transaction.gas + (transaction.additionalData.contractGas || 0) });

// Mint transaction for miner's reward.
const rewardTransaction = new Transaction(publicKey, BLOCK_REWARD + gas);
const rewardTransaction = new Transaction(SHA256(publicKey), BLOCK_REWARD + gas);
Transaction.sign(rewardTransaction, MINT_KEY_PAIR);

// Create a new block.
Expand Down

0 comments on commit 152da64

Please sign in to comment.