Skip to content

Commit

Permalink
blkchn/Blockchain: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
allenvox committed Nov 4, 2024
1 parent e606e5a commit a0319e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/blkchn/Blockchain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ class Blockchain {
Block newBlock(chain.size(), data, chain.back().hash);
chain.push_back(newBlock);
node.setBalance(node.getBalance() + BLOCKADD_REWARD);
std::cout << "new block " << newBlock.hash.substr(0, 16) + "..." << "\tby\t"
<< node.getId() << "\t(reward " << BLOCKADD_REWARD << " coins)\n";
std::cout << "new block " << newBlock.hash.substr(0, 16) + "..."
<< "\tby\t" << node.getId() << "\t(reward " << BLOCKADD_REWARD
<< " coins)\n";
}

bool isChainValid() {
Expand Down

0 comments on commit a0319e9

Please sign in to comment.