blockchain-test/Blockchain.h

26 lines
519 B
C++

//
// Keszitette: Toldi Balázs Ádám
// Datum: 2020. 03. 15.
//
#ifndef BLOCKCHAIN_BLOCKCHAIN_H
#define BLOCKCHAIN_BLOCKCHAIN_H
#include <vector>
#include <string>
#include "Block.h"
class Blockchain {
static int difficulty;
static int blockReward;
std::vector<Block> blockList;
public:
const std::vector<Block> &getBlockList() const;
static int getDifficulty();
static int getBlockReward();
bool verifyBlocks() const;
bool addBlock(Block& b);
};
#endif //BLOCKCHAIN_BLOCKCHAIN_H