mirror of
https://github.com/monero-project/monero.git
synced 2025-12-13 16:38:31 -05:00
Make difficulty 128 bit instead of 64 bit
Based on Boolberry work by: jahrsg <jahr@jahr.me> cr.zoidberg <crypto.zoidberg@gmail.com>
This commit is contained in:
parent
e4b049da05
commit
91f4c7f45f
30 changed files with 787 additions and 62 deletions
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include "crypto/hash.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/difficulty.h"
|
||||
#include "ringct/rctSigs.h"
|
||||
#include "rpc/rpc_handler.h"
|
||||
|
||||
|
|
@ -165,6 +166,7 @@ namespace rpc
|
|||
uint64_t height;
|
||||
uint64_t depth;
|
||||
crypto::hash hash;
|
||||
cryptonote::difficulty_type wide_difficulty;
|
||||
uint64_t difficulty;
|
||||
uint64_t reward;
|
||||
};
|
||||
|
|
@ -173,6 +175,7 @@ namespace rpc
|
|||
{
|
||||
uint64_t height;
|
||||
uint64_t target_height;
|
||||
cryptonote::difficulty_type wide_difficulty;
|
||||
uint64_t difficulty;
|
||||
uint64_t target;
|
||||
uint64_t tx_count;
|
||||
|
|
@ -187,6 +190,7 @@ namespace rpc
|
|||
bool stagenet;
|
||||
std::string nettype;
|
||||
crypto::hash top_block_hash;
|
||||
cryptonote::difficulty_type wide_cumulative_difficulty;
|
||||
uint64_t cumulative_difficulty;
|
||||
uint64_t block_size_limit;
|
||||
uint64_t block_weight_limit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue