Blockchain-C-Plus-Plus-Example
Blockchain-C-Plus-Plus-Example copied to clipboard
This is a simple example of how a blockchain works. C++
I cracked the chain and it says it's still valid // Someone's getting sneaky Block *hackBlock = awesomeCoin.getLatestBlock(); cout
The hash is always the same.
dheerajbishnoi123@dheerajpc:~/Documents/c++ programmer/BlockChainExample$ g++ main.cpp /tmp/ccOyLwuF.o: In function `main': main.cpp:(.text+0x26): undefined reference to `Blockchain::Blockchain()' main.cpp:(.text+0x125): undefined reference to `Blockchain::addBlock(TransactionData)' main.cpp:(.text+0x230): undefined reference to `Blockchain::addBlock(TransactionData)' main.cpp:(.text+0x24b): undefined reference to `Blockchain::printChain()' main.cpp:(.text+0x25a): undefined...