Init and update merkle tree root

This commit is contained in:
SChernykh
2023-10-25 20:06:12 +02:00
parent 2d1158af64
commit 0b711cbe65
8 changed files with 158 additions and 18 deletions
+11
View File
@@ -383,6 +383,13 @@ struct TxMempoolData
uint64_t time_received;
};
struct AuxChainData
{
hash unique_id;
hash data;
difficulty_type difficulty;
};
struct MinerData
{
FORCEINLINE MinerData()
@@ -394,6 +401,7 @@ struct MinerData
, median_weight(0)
, already_generated_coins(0)
, median_timestamp(0)
, aux_nonce(0)
{}
uint8_t major_version;
@@ -406,6 +414,9 @@ struct MinerData
uint64_t median_timestamp;
std::vector<TxMempoolData> tx_backlog;
std::vector<AuxChainData> aux_chains;
uint32_t aux_nonce;
std::chrono::high_resolution_clock::time_point time_received;
};