blockchain-test/main.cpp

16 lines
421 B
C++

#include <iostream>
#include "Block.h"
#include "Blockchain.h"
int main() {
std::cout << "Hello, World!" << std::endl;
Transaction tr("","Balazs",100);
Transaction trs[] = {tr};
Block b(trs,1);
std::cout << b.getHash() << std::endl;
Block b2(nullptr,0,b.getHash());
std::cout << b.getHash() << std::endl;
std::cout << b2.getPerviousHash() << std::endl;
Blockchain bc;
return 0;
}