Skip to content

Commit

Permalink
Digitalnote 4.0.0-beta update
Browse files Browse the repository at this point in the history
  • Loading branch information
clintar committed Nov 21, 2016
1 parent 9025719 commit 54d041c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/cryptonote_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#define CURRENT_BLOCK_MINOR_VERSION 0

#define BLOCK_MAJOR_VERSION_1 1
#define BLOCK_MAJOR_VERSION_2 3
#define BLOCK_MAJOR_VERSION_2 2
#define BLOCK_MAJOR_VERSION_3 3

#define COIN ((uint64_t)100000000) // pow(10, 8)
#define DEFAULT_FEE ((uint64_t)1000000) // pow(10, 6)
Expand Down
12 changes: 10 additions & 2 deletions src/cryptonote_core/cryptonote_basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,15 @@ namespace cryptonote

// Implemented below
inline serializable_bytecoin_block make_serializable_bytecoin_block(const block& b, bool hashing_serialization, bool header_only);
struct RootBlock {
uint8_t majorVersion;
uint8_t minorVersion;
crypto::hash previousBlockHash;
uint16_t transactionCount;
std::vector<crypto::hash> baseTransactionBranch;
transaction baseTransaction;
std::vector<crypto::hash> blockchainBranch;
};

struct block_header
{
Expand All @@ -478,7 +487,6 @@ namespace cryptonote
uint64_t timestamp;
crypto::hash prev_id;
uint32_t nonce;

BEGIN_SERIALIZE()
VARINT_FIELD(major_version)
VARINT_FIELD(minor_version)
Expand All @@ -491,7 +499,7 @@ namespace cryptonote
struct block: public block_header
{
bytecoin_block parent_block;

RootBlock rootBlock;
transaction miner_tx;
std::vector<crypto::hash> tx_hashes;

Expand Down

0 comments on commit 54d041c

Please sign in to comment.