Skip to content

Commit 31c531b

Browse files
committed
Revert "Digitalnote 4.0.0-beta update"
This reverts commit 54d041c.
1 parent 54d041c commit 31c531b

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

src/cryptonote_config.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
#define CURRENT_BLOCK_MINOR_VERSION 0
77

88
#define BLOCK_MAJOR_VERSION_1 1
9-
#define BLOCK_MAJOR_VERSION_2 2
10-
#define BLOCK_MAJOR_VERSION_3 3
9+
#define BLOCK_MAJOR_VERSION_2 3
1110

1211
#define COIN ((uint64_t)100000000) // pow(10, 8)
1312
#define DEFAULT_FEE ((uint64_t)1000000) // pow(10, 6)

src/cryptonote_core/cryptonote_basic.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,6 @@ namespace cryptonote
470470

471471
// Implemented below
472472
inline serializable_bytecoin_block make_serializable_bytecoin_block(const block& b, bool hashing_serialization, bool header_only);
473-
struct RootBlock {
474-
uint8_t majorVersion;
475-
uint8_t minorVersion;
476-
crypto::hash previousBlockHash;
477-
uint16_t transactionCount;
478-
std::vector<crypto::hash> baseTransactionBranch;
479-
transaction baseTransaction;
480-
std::vector<crypto::hash> blockchainBranch;
481-
};
482473

483474
struct block_header
484475
{
@@ -487,6 +478,7 @@ struct RootBlock {
487478
uint64_t timestamp;
488479
crypto::hash prev_id;
489480
uint32_t nonce;
481+
490482
BEGIN_SERIALIZE()
491483
VARINT_FIELD(major_version)
492484
VARINT_FIELD(minor_version)
@@ -499,7 +491,7 @@ struct RootBlock {
499491
struct block: public block_header
500492
{
501493
bytecoin_block parent_block;
502-
RootBlock rootBlock;
494+
503495
transaction miner_tx;
504496
std::vector<crypto::hash> tx_hashes;
505497

0 commit comments

Comments
 (0)